Home > Backend Development > PHP Tutorial > $GLOBALS ['HTTP_RAW_POST_DATA'] cannot get the value, how to exclude global times jeunesseglobal global marke

$GLOBALS ['HTTP_RAW_POST_DATA'] cannot get the value, how to exclude global times jeunesseglobal global marke

WBOY
Release: 2016-07-29 08:53:04
Original
1029 people have browsed it

1. Use file_get_contents('php://input') to get data. If it cannot be obtained, it may be a data transmission error. Capture the request packet and analyze the data.

2. If file_get_contents('php://input') has data. Then check the php.ini configuration file.

Find the following, if not enabled, enable it

always_populate_raw_post_data = On

The above introduces how to exclude $GLOBALS ["HTTP_RAW_POST_DATA"] if the value cannot be obtained, including global and http aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template