View Single Post
  #3 (permalink)  
Old August 5th, 2005, 05:51 AM
ciderpunx ciderpunx is offline
Friend of Wrox
Points: 1,515, Level: 15
Points: 1,515, Level: 15 Points: 1,515, Level: 15 Points: 1,515, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

What is happening is that linux doesn't know how to run a .php file natively.

You need to install the php command line interpreter (CLI) and EITHER

rewrite your cron job as follows:

30 11 * * * php /home/pipsquea/www/thanx.php

OR keep the cron job the same and insert the following at the very top of your .php file:

#!/usr/bin/php -q

There's a tutorial here:

http://www.devarticles.com/c/a/PHP/PHP-CLI-and-Cron

--
Don't Stand on your head - you'll get footprints in your hair
                                           http://charlieharvey.org.uk
                                              http://charlieharvey.com
Reply With Quote