Sockets

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
colby.anderson
Forum Newbie
Posts: 3
Joined: Sat Apr 02, 2011 3:49 pm

Sockets

Post 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?
fugix
Forum Contributor
Posts: 207
Joined: Fri Mar 18, 2011 8:01 pm

Re: Sockets

Post by fugix »

i would look into socket_create() and socket_connect()
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: Sockets

Post by Darhazer »

fsockopen, and then fwrite/fread - the same way as from a local file :)
Post Reply