RE: [PHP] CRON JOB
| From: | Jay Blanchard | Date: | Wed, 17 Jul 2002 12:57:55 +0000 |
| Subject: | RE: [PHP] CRON JOB | ||
| References: | 1 | Groups: | php.general php.windows |
| Request: | Send a blank email to php-general+get-108070@lists.php.net to get a copy of this message | ||
[snip]
What do I have to do before I can run my file.php as a cron job in Linux?
[/snip]
Look at the archives for the past couple of days, it has been covered in
some detail. Make sure to compile PHP without apsx, and for practical
purposes move the PHP executable to the /usr/local/bin directory. Then put
this as the first line of the PHP file you want to run from a CRON;
#!/usr/local/bin/php
Then set up your CRON.
HTH!
Jay
"Philosophy is a study that lets us be unhappy more intelligently."
*************************************
* Want to meet other PHP developers *
* in your area? Check out: *
* http://php.meetup.com/ *
* No developer is an island ... *
*************************************