PDA

View Full Version : Executing PHP via cron job


BluePhoenix
02-13-2006, 01:18 AM
What is the command for executing a php script via a cron job?

Thanks.

dsch
02-13-2006, 02:18 AM
I use this:
lynx > /dev/null -dump http://www.mydomain.com/myphpscript.php

Works fine.

MikeKieffer
02-13-2006, 09:59 AM
This is how I have them set-up and they work great:

/usr/local/bin/php /home/prosphot/public_html/admin/spam_killer.php

I even have the admin directory password protected, and the cron still runs. The cron jobs run as your bluehost account user.