Re: Automating tasks in PHP?
| From: | Steve Werby | Date: | Mon, 05 Feb 2001 21:06:17 +0000 |
| Subject: | Re: Automating tasks in PHP? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-38316@lists.php.net to get a copy of this message | ||
"James, Yz" <liljim@btconnect.com> wrote:
> Is there any way of automating tasks in php scripts, WITHOUT having them
> open? Ie, having some method or other to send out an email automatically,
> once a week, as a newsletter, based on data / criteria from a database?
cron. See "man cron" from Linux/Unix commandline. Use it to schedule
programs. If you have PHP installed as a CGI you can call a PHP file
directly, otherwise you'll have to call it using its full URL using a
program like wget or lynx.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/