Page 1 of 1

Sockets

Posted: Mon Apr 04, 2011 12:38 pm
by colby.anderson
I'd like to use a socket to send a command to a remote server. Does anyone have a bit of code that would be useful for this?

Re: Sockets

Posted: Mon Apr 04, 2011 1:17 pm
by fugix
i would look into socket_create() and socket_connect()

Re: Sockets

Posted: Mon Apr 04, 2011 2:48 pm
by Darhazer
fsockopen, and then fwrite/fread - the same way as from a local file :)