PHP and Cron Jobs
Posted: Tue Mar 08, 2011 7:33 pm
Hi guys,
I am having an issue with a cron job I setup. It runs a php file. The php file runs fine if I execute it through a browser.
In the php file I reference a .txt file held on the server. I do a file_exists and check for existence. When I run this through the cron it can't find the file however when I run through the browser it finds it and works fine.
Any ideas on how I should reference the path to the file (i assume this is the issue).
Cheers,
J
I am having an issue with a cron job I setup. It runs a php file. The php file runs fine if I execute it through a browser.
In the php file I reference a .txt file held on the server. I do a file_exists and check for existence. When I run this through the cron it can't find the file however when I run through the browser it finds it and works fine.
Any ideas on how I should reference the path to the file (i assume this is the issue).
Cheers,
J