Error connecting to AMIP Server (Using PHP) |
Error connecting to AMIP Server (Using PHP) |
Heretic121 |
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 |
Serge |
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?
|
Heretic121 |
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 Thanks for the quick reply anyway I'll probably come across more problems later on Heretic121 |
Heretic121 |
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 Heretic121 |
Serge |
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?
|
Heretic121 |
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 |
Serge |
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? |
Heretic121 |
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 |
Serge |
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.
|
Heretic121 |
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 |
Serge |
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.
|
Heretic121 |
Aug 1 2008, 09:26 AM
Post
#12
|
Newbie Group: Members Posts: 7 Joined: 31-July 08 Member No.: 572 |
Holy .....
Thanks dude Moving ac.dll to windows\system32 worked Your the best Heretic121 |