Date: 04/30/00
- Next message: Jay Beaton: "Re: [PHP3] homesite plugin?"
- Previous message: Rasmus Lerdorf: "Re: [PHP3] PROS AND CONSHi,"
- Next in thread: Sascha Schumann: "Re: [PHP3] PHP CGI-Version: read from stdin/pipe"
- Reply: Sascha Schumann: "Re: [PHP3] PHP CGI-Version: read from stdin/pipe"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is there a way to handle input from a pipe in php?
Using the CGI-Version of php, I am looking for an
equal solution to this simple shell-script:
------ this is an example shell script -------
#!/bin/sh
# Read stdin
#
while read LINE
do
TEXT=${LINE}
break
done
------ this is an example shell script end-------
$TEXT now contains the piped input.
Anyone did this before?
- dk
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Jay Beaton: "Re: [PHP3] homesite plugin?"
- Previous message: Rasmus Lerdorf: "Re: [PHP3] PROS AND CONSHi,"
- Next in thread: Sascha Schumann: "Re: [PHP3] PHP CGI-Version: read from stdin/pipe"
- Reply: Sascha Schumann: "Re: [PHP3] PHP CGI-Version: read from stdin/pipe"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

