Home >Backend Development >PHP Tutorial >javascript - PHP file upload speed is too slow, is there any optimization method?

javascript - PHP file upload speed is too slow, is there any optimization method?

WBOY
WBOYOriginal
2016-09-03 00:14:152562browse

1. The average size of uploaded files is about 10M
2. I am currently using apache. I heard that changing to nginx can speed up the process?

Reply content:

1. The average size of uploaded files is about 10M
2. I am currently using apache. I heard that changing to nginx can speed up the process?

Uploading files may depend on your local network bandwidth

Change to a network with fast upload bandwidth, it has nothing to do with PHP and Nginx.

nginx has a file upload module https://github.com/vkholodkov/nginx-upload-module/tree/2.2. Using this module, the file upload and reception processing is directly handed over to nginx, nginx Directly pass the file-related parameters to php, so that php only receives file-related parameters, such as file size, temporary storage location, type, etc., without processing the submitted file stream

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