php chmod() not changing permissions

后端 未结 4 1409
既然无缘
既然无缘 2021-01-12 04:43

I am having problems with a picture uploading script.

I know there are hundreds of the same questions, but I haven\'t found the one that would be work for me.

<
4条回答
  •  佛祖请我去吃肉
    2021-01-12 04:55

    First , open PHP error_report by adding two line on top of your code, see if there is a error coming from chmod:

    ini_set('display_errors', true);
    error_reporting(E_ALL);
    

    Make sure your WebServer has the permission to that directory, my guess is the WebServer don't have permission.

提交回复
热议问题