Home > Backend Development > PHP Tutorial > 使用php://input

使用php://input

WBOY
Release: 2016-06-23 14:35:32
Original
926 people have browsed it

就是一个输入流, 可以获得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"); ?>

 

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