Printable Version of Topic

Click here to view this topic in its original format

AMIP Community _ SDK Support _ PHP Socket functions

Posted by: VesQ Jul 3 2008, 11:10 AM

Is it possible to use PHP socket functions to receive AMIP information?
I am able to connect to the AMIP server through PHP but I don't know what I need to send through sockets to get answers from AMIP server.

P.S.
My english grammar may not be perfect, but I hope you can still understand what I'm looking for smile.gif

Posted by: Serge Jul 3 2008, 11:25 AM

It would be extremely hard as AMIP server is using the complex protocol provided by the Remote Method Invocation framework.

I'll probably release a separate server for accessing AMIP from pure sockets and other languages using simple APIs like SOAP or generic XML-RPC.

If you are hosting your own sever with PHP on Windows, it's possible to install the PHP AMIP extension available in AMIP SDK distribution.

Posted by: VesQ Jul 3 2008, 11:59 AM

QUOTE(Serge @ Jul 3 2008, 02:25 PM) *
If you are hosting your own sever with PHP on Windows, it's possible to install the PHP AMIP extension available in AMIP SDK distribution.
It's an UNIX server so it's not possible. sad.gif

QUOTE(Serge @ Jul 3 2008, 02:25 PM) *
I'll probably release a separate server for accessing AMIP from pure sockets and other languages using simple APIs like SOAP or generic XML-RPC.
That sounds great! Is it difficult for you to do / how long would that take (approximately)?

Posted by: Serge Jul 3 2008, 03:33 PM

Not very difficult as a prototype, but difficult as a standalone and compete application, as it will require an installer, an option to run as service, configuration UI, etc.

Posted by: blert Jul 6 2008, 03:54 AM

Out of curiosity...

Do you have access to the directory on the server containing your php files via a share, or do you have to FTP (or whatever) to it?

If you have direct access to it then you can easily use the text file integration by just saving "whatever.PHP" to the appropriate directory and set it to output something like this example...

CODE

<?php
$npName = "%name"
?>

You will get a PHP file that looks like this...
CODE

<?php
$npName = "Deftones - Digital Bath"
?>

You can then use the variable $npName anywhere you like.

If you have to log in (FTP, whatever) to make changes then you can still do the same thing but you will need something that can automatically upload to the server at an interval of your choice.

Posted by: VesQ Jul 7 2008, 07:28 PM

QUOTE(blert @ Jul 6 2008, 06:54 AM) *
If you have direct access to it then you can easily use the text file integration by just saving "whatever.PHP" to the appropriate directory and set it to output something like this example...
...
If you have to log in (FTP, whatever) to make changes then you can still do the same thing but you will need something that can automatically upload to the server at an interval of your choice.
But what if I'd like to have the ability to control AMIP through my PHP script? That won't work so easily dry.gif

Posted by: blert Jul 8 2008, 02:42 AM

QUOTE(VesQ @ Jul 7 2008, 03:28 PM) *

But what if I'd like to have the ability to control AMIP through my PHP script? That won't work so easily dry.gif

True, but in your original post you said that you wanted to receive info from AMIP. Sorry if I misunderstood.

Powered by Invision Power Board
© Invision Power Services