php处理post原始数据有关问题()

WBOY
Release: 2016-06-13 12:43:57
Original
778 people have browsed it

php处理post原始数据问题(在线等)
XX软件,去连接hxxp://www.test.com/input.php
当通信连接好后这个XX软件就发送一个文本文件比如:abc.txt
然后php运算后,反回一段jason串给这个软件,最后软件运行相应的功能。?

如果这个XX软件发送abc.txt(内容verify,deny,not commit等信息),php运算后就返回{"id":xxx,"url":"xxx","port":"xxx"}


这样的php应该怎么写呢?

我尝试使用php://input接收abc.txt,但接收后应该怎么处理,以及处理后怎么返回jason格式的串?

请高手指点,感谢!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!