Re: Best way to start a CRON
| From: | Barry | Date: | Thu, 20 Apr 2006 09:15:31 +0000 |
| Subject: | Re: Best way to start a CRON | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234344@lists.php.net to get a copy of this message | ||
Pure Web Solution wrote:
I run several PHP scripts via CRON in the following way: put the following in the top of the php script: #!/usr/local/bin/php -q (linux system - location of php bin) and in the CRONTAB I have the following: 10 1 * * * root /usr/local/bin/php -q /script/CRONexport.php the -q supress HTML headers. hope this helps! Yes it does. Thanks :)-- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)