I am trying to write a query to a file for debugging. The file is in database/execute.php. The file I want to write to is database/queries.php.
database/execute.php
database/queries.php
There 2 way to resolve this issues 1. use chmod 777 path-to-your-directory. if it does not work then 2. simply provide the complete path of your file query.txt.
chmod 777 path-to-your-directory
query.txt