`

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服务器配置中进行设置。



 

 

  • 大小: 26.7 KB
  • 大小: 25.9 KB
  • 大小: 31.8 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics