View Single Post
Old 09-07-2005, 06:06 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Assuming test2.php is the PHP script you want to run, you are not passing variables, and you have *nix shell access, make a cron.txt file with the following:
Code:
0 0 * * * /full/path/to/php -f /full/path/to/test2.php > /full/path/to/log.txt
That says to run test2.php and dump any output to log.txt at midnight of every day. Then type /full/path/to/crontab /full/path/to/cron.txt to set the cronjob.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote