Home>Article>Backend Development> What should I do if the file downloaded by php is incomplete?

What should I do if the file downloaded by php is incomplete?

藏色散人
藏色散人 Original
2021-10-29 09:34:19 2718browse

Solution to incomplete php file download: 1. Find the fastcgi_temp file in nginx; 2. Modify the permissions by executing the "chmod -R 777" command.

What should I do if the file downloaded by php is incomplete?

The operating environment of this article: linux5.9.8 system, PHP7.1 version, DELL G3 computer

php file download is incomplete what to do?

Incomplete php download file?

Recently changed the server. After setting up, I found that the downloaded file was incomplete. It was always about 100k. It should not be a code problem.

I guessed it was the configuration file, but it still didn’t work after changing the configurations. Later I found out that it was a permission issue with the fastcgi_temp file in nginx. I solved the problem quickly first, it’s simple and crudechmod -R 777After modifying the permissions, The download function is normal.

Note:

Linux chmod (full English spelling: change mode) command is a command that controls user permissions on files

Linux/Unix file calling permissions are divided into three Level: File owner (Owner), user group (Group), other users (Other Users).

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What should I do if the file downloaded by php is incomplete?. For more information, please follow other related articles on the PHP Chinese website!

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