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.
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.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.