使用php://input

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 14:35:32965browse

就是一个输入流, 可以获得POST的原始数据.

echo file_get_contents("php://input");

//示例代码

//test.html

test php://input
用户名:
密码:
test php://input
用户名:
密码:

//input.php

test php://iput web /n"; echofile_get_contents("php://input"); ?>

test php://iput web /n"; echo file_get_contents("php://input"); ?>

 

Statement:
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