The solution to the problem that php cannot find the temporary folder when uploading files: first open the php.ini configuration file; then modify the content [upload_tmp_dir = "C:/Windows/Temp"], the folder path Set according to your own system.
Cause analysis:
1. The configuration file does not set a temporary folder
2. The temporary folder does not exist or is superior The folder does not have the corresponding permissions
(Learning video recommendation: java course)
Solution:
First find the PHP configuration file PHP.ini;
Then modify the content
;upload_tmp_dir =
to:
upload_tmp_dir = "C:/Windows/Temp" //后面的文件夹路径根据您的系统来设置
If the permissions are insufficient, you can add corresponding permissions to the files according to different operating systems.
Related recommendations: php training
The above is the detailed content of What should I do if the temporary folder cannot be found when uploading files in PHP?. For more information, please follow other related articles on the PHP Chinese website!