Re: Crontab PHP Script
| From: | Scot L. Harris | Date: | Sun, 27 Jun 2004 00:04:29 +0000 |
| Subject: | Re: Crontab PHP Script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189109@lists.php.net to get a copy of this message | ||
On Sat, 2004-06-26 at 19:34, Ryan Schefke wrote:
> Hi,
>
>
>
> Can someone please give me some guidance. I'd like to run a php script
> every minute (in reality every night, but just testing). I've done some
> reading and found that a crontab is the best way to go (I think). I'm using
> Plesk 7 on a Linux box and I have root access.
>
You need to add #!/usr/bin/php
At the start of your script so it knows how to run it. You will also
need to set the permission bits to allow execution
chmod 700
Change the path to where you have the cli version of php on your system.
--
Scot L. Harris <webid@cfl.rr.com>