RE: [PHP] php script as cron job?

From: Date: Mon, 17 Jul 2000 15:39:31 +0000
Subject: RE: [PHP] php script as cron job?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-6927@lists.php.net to get a copy of this message
Hi Maria! Yes. If you compile php as a standalone binary, and put it in an adequate place, like /usr/local/bin, you could put #/usr/local/bin/php -q in the top of your localrunning script that you want to run as a cronjob. 5 0 * * * $HOME/scripts/db_gc.php Regards, -- Lars Wilhelmsen <lw@ez.no>, developer @ eZ systems <www.ez.no> -----Original Message----- From: Erb, Maria [mailto:merb@keene.edu] Sent: 17. juli 2000 17:32 To: php-general@lists.php.net Subject: [PHP] php script as cron job? hi, I wrote a php script that clears out entries in a MySQL db that are out of date. I'd like this script to run once a day. Can I put it in my daily cron job directory (under Red Hat)? and if so, what directory should I run the script from? (e.g. the web document root or what?) thanks for the help! Maria Maria B. Erb Web Developer Keene State College 603-358-2340 mail address: MS 2707 / CMIT 229 Main Street Keene, NH 03435 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#6927) next »