PHPfile_get_content receiving data omission-php Tutorial

Source: Internet
Author: User
PHPfile_get_content: the binary image data sent from my c ++ client + base64 encryption is sent to the PHP server file_put_contents using http post ($ file, $ _ POST ["zhaopian"]) according to the comparison between the data sent by the client and the data received by the PHP server, we found that the data directly received from 4 branches, 3, and 4 points was not put into this issue. how should I solve this problem .... How does file_put_contents ensure the integrity of the received data ..


Reply to discussion (solution)

You are all ascii characters.

Is the data Big? Whether the limit of post_max_size is exceeded

In fact, isn't it good for you to use curl to transfer files in C ++? A lot of online code

You are all ascii characters.

Is the data Big? Whether the limit of post_max_size is exceeded

In fact, isn't it good for you to use curl to transfer files in C ++? A lot of online code

The size of my image 117KB should not exceed post_max_size.

I uploaded it using curl... It's depressing that the client sends a message to the server to receive it ..

You are all ascii characters.

Is the data Big? Whether the limit of post_max_size is exceeded

In fact, isn't it good for you to use curl to transfer files in C ++? A lot of online code




File_put_content cannot write the number of nodes by itself ..

File_put_content: the number of bytes written to the file.

File_put_content: the number of bytes written to the file.

The client sends 157962 messages to the server. only 118425 messages are too suspense.

File_put_content: the number of bytes written to the file.


Is there any way to output data before $ _ post ["zhaopian?

Echo strlen ($ _ POST ["zhaopian"]);

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.