stdin in php 4.01pl2

From: Date: Fri, 01 Sep 2000 10:19:01 +0000
Subject: stdin in php 4.01pl2
Groups: php.general 
Request: Send a blank email to php-general+get-14787@lists.php.net to get a copy of this message
09/01/2000 12:19 PM (subscript: Jesper Frank Nemholt@TSM) Hi! If I do like this from a unix shell : cat /etc/passwd | php -f test.php ... is the content of /etc/passwd then available as a variable/array to the test.php script ? (it doesn't show up in a phpinfo) Problem is : I need PHP to parse the output from a program. This program can't be controlled/executed by PHP because it's normally run by the OS. Instead, it's possible to define command line options for this program as a entry in /etc/rc.config, and this way I can let the OS execute both the program, and pipe the output to both PHP, and the normal thing; to a file. l8r/Jspr

« previous php.general (#14787) next »