#19185 [NEW]: JavaScript ImportExportFavorites() facility
| From: | blueeye at mail dot blueeye dot idv dot tw | Date: | Fri, 30 Aug 2002 03:41:54 +0000 |
| Subject: | #19185 [NEW]: JavaScript ImportExportFavorites() facility | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-18209@lists.php.net to get a copy of this message | ||
From: blueeye@mail.blueeye.idv.tw
Operating system: any
PHP version: 4.2.2
PHP Bug Type: *General Issues
Bug description: JavaScript ImportExportFavorites() facility
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 bug report at http://bugs.php.net/?id=19185&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19185&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19185&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19185&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19185&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19185&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19185&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19185&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19185&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19185&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19185&r=globals