Posted by arielCo on 11/25/05 03:01
Update: a simple script like this works fine as the child process: #!/usr/local/bin/php <?php while ( trim($line = fgets(STDIN)) != 'exit' ) fwrite(STDOUT,$line); exit(0); ?> But 'grep .' doesn't - it also requires me to fclose its stdin. Is this about stream buffering? I've tried stream_set_write_buffer($pipes[0],0), to no avail. help! - Ariel
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming