Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Error connecting to AMIP Server (Using PHP)
Heretic121
post Jul 31 2008, 05:51 PM
Post #1


Newbie
*

Group: Members
Posts: 7
Joined: 31-July 08
Member No.: 572



Hey there.
My problem is that I'm trying to use the example shownp.php script and well... Every time I get the error message above (The topic title)
Any ideas on why I'm getting this error message?

Heretic121
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jul 31 2008, 06:43 PM
Post #2


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Firewall? Server not enabled? Running on different port?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Heretic121
post Jul 31 2008, 06:55 PM
Post #3


Newbie
*

Group: Members
Posts: 7
Joined: 31-July 08
Member No.: 572



Hehe I've just restarted iTunes and tried again and it seemingly works fine
I dunno maybe just a glitch smile.gif
Thanks for the quick reply anyway
I'll probably come across more problems later on laugh.gif

Heretic121
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Heretic121
post Jul 31 2008, 07:35 PM
Post #4


Newbie
*

Group: Members
Posts: 7
Joined: 31-July 08
Member No.: 572



Ok as I thought I'm stuck again.
I want to have it so that whenever I load shownp.php it displays the currently playing song

http://heretic121.pastebin.com/m374ea40e <--- That is what shownp.php contains

[edit] Just a side note: It displays fine in command prompt its just not being read properly in a browser[/edit]

Am I going wrong anywhere?

Thanks for any help smile.gif

Heretic121
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jul 31 2008, 07:43 PM
Post #5


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Same machine, same PHP version?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Heretic121
post Jul 31 2008, 07:49 PM
Post #6


Newbie
*

Group: Members
Posts: 7
Joined: 31-July 08
Member No.: 572



Yep
Machine: Windows XP SP2
PHP 5.2.6 (cli) (built: May 2 2008 18:02:07) <--- Done using php -v
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jul 31 2008, 07:54 PM
Post #7


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



So the player and server are on the same machine and it work from the command line, but not from the server?

Anything interesting in the sever logs? Are you sure the extension is loaded?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Heretic121
post Jul 31 2008, 07:58 PM
Post #8


Newbie
*

Group: Members
Posts: 7
Joined: 31-July 08
Member No.: 572



Yeh there was something in the server logs

http://heretic121.pastebin.com/d145fb8b1

I assume the extension isnt loading properly?
Any way of fixing this
I already have extension=php_amip.dll added to my php.ini file

Heretic121
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Jul 31 2008, 08:08 PM
Post #9


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



You should place php_amip.dll to the place where PHP has extensions installed. Also ac.dll must be in PATH so that it can be loaded by the server.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Heretic121
post Jul 31 2008, 08:51 PM
Post #10


Newbie
*

Group: Members
Posts: 7
Joined: 31-July 08
Member No.: 572



I'm not too good with adding things to PATH but my PATH now goes like this

C:\Program Files\Nmap;C:\Program Files\PHP\ac.dll

This correct?
As for php_amip.dll i've added it to \ext\
and added \etc\ to php.ini

Heretic121
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Aug 1 2008, 12:43 AM
Post #11


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Nope, the quickest way is to put ac.dll in windows\system32. PATH should include only directories, not files.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Heretic121
post Aug 1 2008, 09:26 AM
Post #12


Newbie
*

Group: Members
Posts: 7
Joined: 31-July 08
Member No.: 572



Holy ..... ohmy.gif
Thanks dude biggrin.gif
Moving ac.dll to windows\system32 worked smile.gif
Your the best smile.gif

Heretic121
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: