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

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

藏色散人
Release: 2023-03-13 15:08:02
Original
2877 people have browsed it

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 crude chmod -R 777 After 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!

Related labels:
php
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template