Re: Crontab PHP Script
| From: | Marek Kilimajer | Date: | Sat, 26 Jun 2004 23:57:24 +0000 |
| Subject: | Re: Crontab PHP Script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189108@lists.php.net to get a copy of this message | ||
Ryan Schefke wrote --- napísal::
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.
Then I setup my crontab command as: /home/httpd/vhosts/tgwedding.com/httpdocs/tgwedding/crontab.phpThe crontab command should be: /path/to/php /path/to/your/crontab.php Add -q parameter if the php executable is cgi and not cli