Hi everyone,
first of all sorry for my bad English

I've started programming with socket in php (yes, I'm a newbie) and I've already a problem which doesn't allow me to go forward.
Hope you can help me...
I've tried to use the entire code token from the article called 'Socket Programming With PHP' but it doesn't work properly under win xp.
It comes out this error
-- Warning: socket_bind() unable to bind address [10048]: Di norma è consentito un solo utilizzo di ogni indirizzo di socket (protocollo/indirizzo di rete/porta). in c:\programmi\apache group\apache\htdocs\test\socket\socket.php3 on line 14
Could not bind to socket
Total translation should be:
-- Warning: socket_bind() unable to bind address [10048]: basely it is allowed a unique address of socket (protocol/network address/port). in c:\programmi\apache group\apache\htdocs\test\socket\socket.php3 on line 14
Could not bind to socket
Here the configuration: apache/1.3.27 (Win32) PHP/4.3.4
Here the code:
--- socket.php3 ---
<?
// set some variables
$host = "127.0.0.1";
$port = 1234;
// don't timeout!
set_time_limit(0);
// create socket
$socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could not create
socket\n");
// bind socket to port
$result = socket_bind($socket, $host, $port) or die("Could not bind to
socket\n");
// start listening for connections
$result = socket_listen($socket, 3) or die("Could not set up socket
listener\n");
// accept incoming connections
// spawn another socket to handle communication
$spawn = socket_accept($socket) or die("Could not accept incoming
connection\n");
// read client input
$input = socket_read($spawn, 1024) or die("Could not read input\n");
// clean up input string
$input = trim($input);
// reverse client input and send back
$output = strrev($input) . "\n";
socket_write($spawn, $output, strlen ($output)) or die("Could not write
output\n");
// close sockets
socket_close($spawn);
socket_close($socket);
?>
Thanks a lot to all in advance!