Home  >  Article  >  Backend Development  >  php $_FILES处理post数据有关问题

php $_FILES处理post数据有关问题

WBOY
WBOYOriginal
2016-06-13 12:43:54937browse

php $_FILES处理post数据问题
vc客户端发送如下2份数据给php server解析,分别是administrator:123与abc.txt,使用$_FILES可以接收到abc.txt文件,但怎么才能接收到name="user"与----MULTI-PARTS-FORM-DATA-BOUNDARY之间的administrator:123呢?接收到数据后,怎么把administrator:123添加到abc.txt文件的第一行?请高手指点一下。谢谢!

----MULTI-PARTS-FORM-DATA-BOUNDARY
Content-Disposition: form-data; name="user"

administrator:123----MULTI-PARTS-FORM-DATA-BOUNDARY
Content-Disposition: form-data; name="upload"; filename="abc.txt"
Content-Type: text/plain

verify:local
id:1111
host:2.2.2.2
id:2222
host:3.3.3.3
id:3333
host:4.4.4.4

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