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.
Getting value from input select Zend Framework 3
How to call a class within other class?
array_map produces weird unicode character
Find if an array is empty in PHP
Different directories using different PHP versions?
Getting error for undefined index in CodeIgniter
Request::Secure() not work with Asset()
Symfony Class Not Found Exception in Laravel Auditing (5)
groupBy within withCount closure (Laravel 5.3.26)
Use multiple name for an input type
How to review changes before making a record go live. Laravel, PHP
Adding “Related Products” to a custom tab in WooCommerce
Other files than php files not being processed; php-fpm
File request returns error 500
Display Banner after mysql first result
spl_autoload_register couldn't get “use” namespace