I'm executing a php file from the php-cli with a shell script. One of the php files creates a file named
available_data during the course of its execution. The problem is that the php file needs to write the file
available_data to the same directory where the php file resides on the server /var/www/html. Instead it writes the file to the directory where the shell script resides /bin/scripts/.
Here's my script (resides in /bin/scripts/createview.sh)
I think the problem is that the php file executes in /bin/scripts. How can I get the php file to execute in /var/www/html instead?