Marco Perone wrote: > I modified my script to > > <?php > > error_reporting(E_ALL | E_STRICT); > ini_set('display_errors', 1); > > $server = stream_socket_server("tcp://127.0.0.1:8080"); > > for ($i = 1; $i <= 50; $i++) { > var_dump($i); > stream_socket_client("tcp://127.0.0.1:8080"); > //stream_socket_accept($server); > } > > but it doesn't show any error. Am I doing something wrong it turning on > error reporting? No, that should be fine (you can double check, though, by adding `var_dump(error_reporting())`). It's possible that the error message only shows up on Windows. Maybe you get some information if you specify the $errno and $errstr parameters to stream_socket_server() and stream_socket_client(), and print their values. -- Christoph M. Becker -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php