Web Hosting Talk







View Full Version : Sockets in PHP


Carp
06-01-2004, 01:39 PM
Hey all!

I need to connect to a server and send some information like 0000000000||name

Can anyone help? Thanks.

utsn
06-01-2004, 02:44 PM
$fp = fsockopen("foobar.com",80);

fputs($fp,"0000000000||name");

fclose($fp);

Something like that ;) with a couple of validation if.

Cheers,

Matt

Carp
06-01-2004, 03:01 PM
Thanks alot. I was using another function.....socket_open maybe? This is much easier. Thanks.