Home > Backend Development > PHP Tutorial > swoole - PHP如何设置file_get_contents('php://input')?

swoole - PHP如何设置file_get_contents('php://input')?

WBOY
Release: 2016-06-06 20:13:12
Original
2376 people have browsed it

很多composer库用到了file_get_contents('php://input')
在swoole框架下PHP不设置 php://input
虽然可以在swoole回调通过$request->rawContent()获取数据,但这样就不能兼容第三方库

请问PHP有什么方法可以主动影响 file_get_contents('php://input') 取到的值吗

回复内容:

很多composer库用到了file_get_contents('php://input')
在swoole框架下PHP不设置 php://input
虽然可以在swoole回调通过$request->rawContent()获取数据,但这样就不能兼容第三方库

请问PHP有什么方法可以主动影响 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