I wrote I a small php script that reads an xml file from a different host and writes it to a directory on my host. The script works ok if I run it via browser or command line (php -f /home/httpd/vhosts/somedir/httpdocs/sms/the_script.php). However, does not seem to run when I set a crontab.
The crontab job looks like this when listed with
CODE
crontab -u me -l
CODE
MAILTO=me@somemail.net
5 * * * * /usr/bin/php -f /home/httpd/vhosts/somedir/httpdocs/sms/the_script.php
5 * * * * /usr/bin/php -f /home/httpd/vhosts/somedir/httpdocs/sms/the_script.php
Any ideas what could be wrong?
I set permision 755 on the_script.php and 644 to the file the_script.php writes to. The containing directory to 755