Jason Freeman wrote: > Hi All > > I am having a problem getting stream_set_blocking to work the way I > expect on STDIN. Please could someone tell me why while blocking is > set to false fread does not get anything. When a file descriptor (stdin) is non-blocking, any read() will not block and wait for data to become available, but will return right away with or without data. Set the fd to blocking to wait for data. /Per Jessen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php