file_put_contents not creating txt file

前端 未结 6 770
后悔当初
后悔当初 2020-12-17 21:28

I currently have a php script that is running when a browser browser browses to the webpage. What I\'m trying to do is write a text file when the script runs that stores a v

6条回答
  •  青春惊慌失措
    2020-12-17 21:46

    I'm note sure if my solution is really clear but it worked :

    cd /mydir/
    setsebool -P allow_httpd_anon_write true 
    

    Best regards

提交回复
热议问题