View Full Version : Executing PHP via cron job
BluePhoenix
02-13-2006, 12: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, 08: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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.