One - One Code All

Blog Content

PHP输入流 php://input的使用

PHP   2012-09-22 10:30:04

PHP输入流 php://input的使用要点:


  1. 官方描述:“php://input可以读取没有处理过的POST数据。相较于$HTTP_RAW_POST_DATA而言,它给内存带来的压力较小,并且不需要特殊的php.ini设置。php://input不能用于enctype=multipart/form-data”。

  2. 使用方法:file_get_contents("php://input")。

  3. 用途:读取POST数据。

  4. 限制:不能用于multipart/form-data类型。



上一篇:apache禁止列目录
下一篇:PHP-MySQL:Headers and client library minor version mismatch

The minute you think of giving up, think of the reason why you held on so long.