Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> PHP Socket functions
VesQ
post 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 smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post 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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
VesQ
post Jul 3 2008, 11:59 AM
Post #3


Newbie
*

Group: Members
Posts: 8
Joined: 3-July 08
Member No.: 547



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)?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post 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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
blert
post 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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
VesQ
post Jul 7 2008, 07:28 PM
Post #6


Newbie
*

Group: Members
Posts: 8
Joined: 3-July 08
Member No.: 547



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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
blert
post Jul 8 2008, 02:42 AM
Post #7


Newbie
*

Group: Members
Posts: 8
Joined: 27-June 08
Member No.: 545



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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

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