Re: [PHP] Re: STDIN Stream Query

2007-08-17 Thread Jason Freeman
Per Jessen wrote: 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

[PHP] STDIN Stream Query

2007-08-16 Thread Jason Freeman
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. Sampe code follows: Code: ".$pos."\r\n"); sleep(1); } stream_set_blocking(STDIN, true); $pos = fread(ST

[PHP] Problems with exec

2004-02-03 Thread Jason Freeman
Hi there I'm having a bit of trouble with executing system commands. My script reads as follows. The problem is that when I run this script the page does not load and apache crashes. Does anyone know a way around this problem?? Thanks