Questions about receiving post data from the php client

Source: Internet
Author: User
Token file, captured with Fiddler, and found that php & nbsp; se php received client post data problems
The vc client posts the abc.txt file to the php server, but the abc.txt file is not generated in the upfilesdirectory of the php server. the file is captured using Fiddler. it is found that the php server returns the http file and the postabc.txt file also contains content? Please advise. Thank you very much!
Abc.txt file content:
Verify: local
Id: 1111
Host: 2.2.2.2
Id: 2222
Host: 3.3.3.3
Id: 3333
Host: 4.4.4.4

Fiddler packet capture:



Php server code:
$ Uploadfile = "upfiles/". $ _ FILES ['upfile'] ['name'];
Move_uploaded_file ($ _ FILES ['upfile'] ['tmp _ name'], $ uploadfile );
?> Share:
------ Solution --------------------
 $ Uploadfile = "upfiles/". $ _ FILES ['upfile'] ['name'];
Echo move_uploaded_file ($ _ FILES ['upfile'] ['tmp _ name'], $ uploadfile );
?>

Check the permission on the upfiles Directory. do you have the write permission?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.