file_put_contents permission denied causing error writing to file
I have a text file with chmod 777 in some directory: /a/b/example.txt I have a php script in another directory: /c/d/script.php Calling file_put_contents in the php script gives a permission error. The file, example.txt has chmod 777 and all its parent directories have 700 or 775. I believe executable permissions should be enough for the parents. This is the error message I get: Warning: file_put_contents(/home/a/b/example.txt): failed to open stream: Permission denied in /home/c/d/script.php on line 103 Error writing to example.txt I have looked around but haven't found a working solution. Hoping for some further suggestions of things to try.
how can i connect my laravel server?
How to get data which is not empty in cakephp
php multidimensional array foreach
Multi dimensional array merge using php
Decode UTF-8 exported XML nodes (Persian) by PHP
Regex to find string independently or attached with tags php
Why this function always returning false?
Redirection with Header(Location:) is not working when image is uploaded with dropjoneJS
PHP form in AJAX no return
echo pre-defined names in main index [closed]
Error when attempting to get XML data
Smarty shows errors from compiled files
Behavior of number_format() across 5.3 & 5.4
How to remove an array element from an array by length
Splitting strings through php to query mysql
mysql to mysqli change, trouble with mysqli_real_escape_string