#19185 [Opn->Bgs]: JavaScript ImportExportFavorites() facility
| From: | iliaa@php.net | Date: | Fri, 30 Aug 2002 03:52:48 +0000 |
| Subject: | #19185 [Opn->Bgs]: JavaScript ImportExportFavorites() facility | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-18211@lists.php.net to get a copy of this message | ||
ID: 19185
Updated by: iliaa@php.net
Reported By: blueeye@mail.blueeye.idv.tw
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: any
PHP Version: 4.2.2
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-08-29 23:41:54] blueeye@mail.blueeye.idv.tw
May I directly read the RAW POST-METHOD informations?
In Perl, we use
read(STDIN, $buffer, $ENV{"CONTENT_LENGTH"});
but in php, I use
<?
$fs = fopen("php://stdin", "r");
$contents = fread($fs, $CONTENT_LENGTH);
fclose($fs);
?> seems not to work.
I got this problem when I EXPORT FAVORITE by JavaScript.
informations are passed by POST method. We know that
variables from anywhere are stored in some associative arrays, maybe
$GLOBALS, $_POST , or others. But the informations passed by POST is a
huge string, should not be parsed as parse_str() do.
if it's passwd by GET method, I can use $GLOBALS['QUERY_STRING'] to
get them.
but how can I read raw POST data?
thanks to read my post.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19185&edit=1