Php: input is also a data submission method, but we seldom use php: input for data submission, so php: what is the difference between input and our common POSTGET data submission methods? Let's take a look at this article. Php: // input is also a
This article is mainly to share with you in the PHP post receive the original data instance detailed, hoped can help everybody.
Typically, users use the browser Web page table to submit data to a one-way server post, and we use PHP to receive user
PHP input Stream Php://inputWhen using XML-RPC, the server gets the client data, mainly through the PHP input stream, rather than the $_post array. So, here's the main discussion of PHP input stream php://inputFor the php://input introduction, the
Generally we use $_post or $_request two predefined variables to receive post-submitted data. However, if the submitted data does not have a variable name, but rather a direct string, then it needs to be received in other ways.Method One: Use the
is debug using the POSTMAN tool, the raw data submitted in the form will return to the bottom of the string of data;
Instead, the form-urlencoded data that was submitted in the form of the file is returned with an error. The same is true with the
Php processes post raw data (online, etc.) XX software, connect hxxp: // why .? If this XX software sends php to handle post raw data problems (online, etc)
XX software, connect to hxxp: // www.test.com/input.php
After the communication is
PHP handles post raw data issues (online, etc.)
XX software, go to connect hxxp://www.test.com/input.php
When the communication is connected, this XX software sends a text file such as: Abc.txt
Then after the PHP operation, back a section of Jason
For a php://input introduction, the PHP Official Handbook document has a very clear overview of it.
"Php://input allows to read raw POST data. It is a less memory intensive alternative to $HTTP _raw_post_data and does no need any special php.ini.
LNMP platform PHP7, Zabbix installation may occur problems Always-populate-raw-post-data =-1, Solution:vim /Directory/zabbix/include/classes/setup/cfrontendsetup.php Find the following code, about Always-populate-raw-post-data; add $
PHP to save binary raw data as a picture of the program code
Get post binary raw data, choose a generated path and the name of the picture, then write, the idea is obvious
123456789101112131415161718192021st22232425262728
Create a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.