Printable Version of Topic

Click here to view this topic in its original format

AMIP Community _ SDK Support _ Error connecting to AMIP Server (Using PHP)

Posted by: Heretic121 Jul 31 2008, 05:51 PM

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

Posted by: Serge Jul 31 2008, 06:43 PM

Firewall? Server not enabled? Running on different port?

Posted by: Heretic121 Jul 31 2008, 06:55 PM

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

Posted by: Heretic121 Jul 31 2008, 07:35 PM

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

Posted by: Serge Jul 31 2008, 07:43 PM

Same machine, same PHP version?

Posted by: Heretic121 Jul 31 2008, 07:49 PM

Yep
Machine: Windows XP SP2
PHP 5.2.6 (cli) (built: May 2 2008 18:02:07) <--- Done using php -v

Posted by: Serge Jul 31 2008, 07:54 PM

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?

Posted by: Heretic121 Jul 31 2008, 07:58 PM

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

Posted by: Serge Jul 31 2008, 08:08 PM

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.

Posted by: Heretic121 Jul 31 2008, 08:51 PM

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

Posted by: Serge Aug 1 2008, 12:43 AM

Nope, the quickest way is to put ac.dll in windows\system32. PATH should include only directories, not files.

Posted by: Heretic121 Aug 1 2008, 09:26 AM

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

Heretic121

Powered by Invision Power Board
© Invision Power Services