Can't write to /tmp with php, despite 777 permissions and no open_basedir value

前端 未结 4 1873
花落未央
花落未央 2020-12-29 02:16

I\'m trying to write a file to my /tmp directory (on an apache server) with the php fopen function, but it fails:

<         


        
4条回答
  •  天命终不由人
    2020-12-29 03:05

    Try to add /tmp to open_basedir. For example:

        php_admin_value open_basedir /some/path:/another/path:/tmp
    

    I'm not sure this is the problem you actually faced, but I found your question while looking for this solution so I guess that might help someone else.

提交回复
热议问题