View Single Post
  #2  
Old 14th March 2007, 22:10
ibux ibux is offline
Junior Member
 
Join Date: Dec 2006
Location: Oslo, Norway
Posts: 4
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by md@waw.co.uk
00 01 * * * /home/www/web(number)/web/auto/mail.php &> /dev/null
When running a PHP script from cron, you must run it through the php binary. When you view a PHP script in your web browser, the web server hosting the PHP file does that for you automagically.

So to run your cron job, do something like this:
Code:
00 01 * * * /path/to/php /home/www/web(number)/web/auto/mail.php
Hope that helps!
Reply With Quote