I have a script that goes through a complicated login sequence to make a "permanent" connection to a server with a fsocksopen.
As long as the connection is open i am allowed to send commands to it.
BUT here comes my problem.
Once i have that connection i want to send more commands to the other server.
but I want to decide what command, so i need some kind of way (i dont know which will be bether for that, PHP or JS) to send the command to my ongoing connection script, and that that script recognizes: hey another command, lets send it to the server. but this all WITHOUT interupting the while (!feof...
thnx in advance