i need a brief code guide on sockets
Posted: Sat Apr 15, 2006 11:40 am
hi, i have read some php sockets tutorials and i still need some help,
i made this code:
and i want to make that when a client connects to the server and another one does too they share the same vars.
in simple words if two users are connected, the value of the var "$nice_var" is the same for both users...
i made this code:
Code: Select all
<?php
$fp = fsockopen( "www.mysite.com", 80, $errno,
$errdesc);
// some code needed here <<<
fclose($fp);
?>in simple words if two users are connected, the value of the var "$nice_var" is the same for both users...