Hi Daniel, I noticed that your phpserv code, when ran on FreeBSD 4.5-STABLE, had odd effects. The most prominant being that no matter what port I told it to bind to, it would always pick a random avaiable port.
I traced this to a bug in your code: function generic_server($port, $address=0) { The socket_bind function doesnt like not being passed a dotted address, so I altered the code to be: function generic_server($port, $address="0.0.0.0") { and voila it was binding to the correct port. - Dan Hardiker -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php