external program execution

From: Date: Sat, 29 Jul 2000 00:17:25 +0000
Subject: external program execution
Groups: php.general 
Request: Send a blank email to php-general+get-8889@lists.php.net to get a copy of this message
Hello, How can I perform the following task: I need to execute a program, put some data via stdin and receive output via stdout... The following sample did not work: $fd = popen($some_program); fputs($fd, $some_data) while (!feof($fd)) { $buffer = fgets($fd, 4096); echo $buffer; } pclose ($fd); Thank you. Sergey

« previous php.general (#8889) next »