Re: Automatically changing data in database

From: Date: Thu, 24 Aug 2000 15:31:03 +0000
Subject: Re: Automatically changing data in database
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-13447@lists.php.net to get a copy of this message
ok, cron jobs are usually setup in /etc/crontab the line looks something like this:
#minute hour    mday    month   wday    who     command
0       0       *       *       *       root    /path/to/cgi-bin/rotate_article.pl
now it's up to you to write 'rotate_article.pl'.
You can write yourself a PHP script, no matter if you have CGI version or module version, and access it via lynx. The crontab entry would look something like this: 0 0 * * * root lynx -dump http://localhost/path/to/rotate_article.php 1>/dev/null 2>&1 or thereabouts. I have plenty of those on my system...awfully useful. - julie +------------------------------------------------+
| Julie Meloni (jcm@i2ii.com)                    |
| Tech. Director, i2i Interactive (www.i2ii.com) |
|                                                |
|      "PHP Essentials" & "PHP Fast & Easy"      |
|            http://www.thickbook.com/           |
+------------------------------------------------+

« previous php.general (#13447) next »