ini_set改变upload_tmp_dir的问题

调试用ini_set函数来修改upload_tmp_dir的值,发现不会成功。所以ini_set修改临时目录的方法是无效的,而且又查了下官网



 

在网上搜索一下,答案如下:

No, because by the time it executes the ini_set you've already uploaded the file. This will need to be set in php.ini, or your webserver config.

翻译为:

不,因为在执行ini_set时,您已经上传了该文件。 这需要在php.ini或您的web服务器配置中进行设置。



 

猜你喜欢

转载自570109268.iteye.com/blog/2422463
tmp