Re: Writing to process STDIN and reading its STDOUT from PHP4?

From: Date: Tue, 26 Sep 2000 08:46:28 +0000
Subject: Re: Writing to process STDIN and reading its STDOUT from PHP4?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-17556@lists.php.net to get a copy of this message
Hi Steve! On Sat, 23 Sep 2000, Steve Hsieh wrote: > Thanks Robert, > > However, those functions deal with PHP's own stdin/stdout. What I am trying > to do is write to STDIN of a process started by PHP and then read the > process STDOUT. the see popen(). Redirect command output to a file, and read from that file. Alternatively, you may look at posix_mkfifo(). Redirect the output of the command to a pipe, and fopen() it and fread() from is as from regular files. -- teodor

« previous php.general (#17556) next »