Re[2]: [PHP] Q: PHP3 / Read STDIN when missing Content-Type

From: Date: Thu, 03 Jan 2002 15:11:28 +0000
Subject: Re[2]: [PHP] Q: PHP3 / Read STDIN when missing Content-Type
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-79325@lists.php.net to get a copy of this message
BS> Your question intrigued me enough to start searching for an BS> answer. Never did this myself, but you may try BS> http://download.php.net/manual/en/html/function.fopen.html BS> (fifth BS> paragrapgh of explanations). Hope it works with Apache - I was BS> unable to determine if this only works when you run PHP scripts BS> from the prompt. Thanks for your response. I think the problem is actually to do with STDIN having already been gobbled up by PHP when it parsed the input, and therefore there is no more data available -- maybe it _is_ available when the Content-type is missing (by stuffing the data back on the queue) or something. Hm. I'll take a peek and let you know, although I have since found another solution: In the end I found another way around it by sucking-in the data using a tiny Perl script, parsing out the field I wanted and then issuing an HTTP request from the Perl script to launch a PHP script with a regular QUERY_STRING. Streuth! Cheers, James. -- Axoria Ltd specialises in Bespoke Internet Software and Hosting. (Esp. integration of desktop with on-line databases / e-Commerce.)

« previous php.general (#79325) next »