For example, I see a piece of code {code...} in a library. what does php: input mean? For example, I see a piece of code in a library.
global $HTTP_RAW_POST_DATA;if (empty($HTTP_RAW_POST_DATA)) { // workaround for a bug in PHP 5.2.2 - http://bugs.php.net/bug.php?id=41293 $data = file_get_contents('php://input');} else { $data = $HTTP_RAW_POST_DATA;}
Herephp://input
What does that mean?
Reply content:
For example, I see a piece of code in a library.
global $HTTP_RAW_POST_DATA;if (empty($HTTP_RAW_POST_DATA)) { // workaround for a bug in PHP 5.2.2 - http://bugs.php.net/bug.php?id=41293 $data = file_get_contents('php://input');} else { $data = $HTTP_RAW_POST_DATA;}
Herephp://input
What does that mean?
Reference Manual content
Http://php.net/manual/zh/wrappers.php...
Obtain the post input stream data. The post type cannot be multipart/form-data.
` $ Input = file_get_contents ('php: // input ');
Var_dump ($ input); exit;
?> '
Post data to this file and you can see that the data passes through urlencode.
I recommend an article for you.
Http://www.perfgeeks.com /? P = 150