using stdin to get POST content in module version
| From: | Mathieu Poumeyrol | Date: | Fri, 15 Dec 2000 11:38:08 +0000 |
| Subject: | using stdin to get POST content in module version | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-30493@lists.php.net to get a copy of this message | ||
Hi all,
I'm trying to use POST method to get data (raw data, not a file, so I
can not use <input type="file">) to my database through a PHP script.
Php is running as an apache module on my computer (a linux box), and I
wonder what is the module equivalent of stdin for cgi. Where can I read
the POST content ? If I try to open php://stdin, I get a bad file
descriptor warning message, and fopen fails returning 0.
Any ideas ?
Thanks.
--
Mathieu Poumeyrol - IDM