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 |
blert |
Jul 6 2008, 03:54 AM
Post
#2
|
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
#3
|
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. |