PHP Socket functions |
PHP Socket functions |
VesQ |
Jul 3 2008, 11:10 AM
Post
#1
|
Newbie Group: Members Posts: 8 Joined: 3-July 08 Member No.: 547 |
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 |
Serge |
Jul 3 2008, 11:25 AM
Post
#2
|
AMIP Developer Group: Root Admin Posts: 935 Joined: 12-March 06 Member No.: 1 |
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. |
VesQ |
Jul 3 2008, 11:59 AM
Post
#3
|
Newbie Group: Members Posts: 8 Joined: 3-July 08 Member No.: 547 |
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. 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)? |
Serge |
Jul 3 2008, 03:33 PM
Post
#4
|
AMIP Developer Group: Root Admin Posts: 935 Joined: 12-March 06 Member No.: 1 |
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.
|
blert |
Jul 6 2008, 03:54 AM
Post
#5
|
Newbie Group: Members Posts: 8 Joined: 27-June 08 Member No.: 545 |
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. |
VesQ |
Jul 7 2008, 07:28 PM
Post
#6
|
Newbie Group: Members Posts: 8 Joined: 3-July 08 Member No.: 547 |
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... But what if I'd like to have the ability to control AMIP through my PHP script? That won't work so easily ... 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. |
blert |
Jul 8 2008, 02:42 AM
Post
#7
|
Newbie Group: Members Posts: 8 Joined: 27-June 08 Member No.: 545 |
|