php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19185 JavaScript ImportExportFavorites() facility
Submitted: 2002-08-29 23:41 UTC Modified: 2002-08-29 23:52 UTC
From: blueeye at mail dot blueeye dot idv dot tw Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.2.2 OS: any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: blueeye at mail dot blueeye dot idv dot tw
New email:
PHP Version: OS:

 

 [2002-08-29 23:41 UTC] blueeye at mail dot blueeye dot idv dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-29 23:52 UTC] iliaa@php.net
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.


 [2002-08-29 23:57 UTC] blueeye at mail dot blueeye dot idv dot tw
thanks, I will try more solutions.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 03:00:02 2026 UTC