RE: [PHP-DB] Run php page automatically
| From: | Beau Lebens | Date: | Fri, 21 Dec 2001 01:43:37 +0000 |
| Subject: | RE: [PHP-DB] Run php page automatically | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-15173@lists.php.net to get a copy of this message | ||
it's better to do something like
0,10,20,30,40,50 * * * * /usr/bin/php -q
/home/you/yourscript.php > /dev/null
since crontab actually stores the result of it's operations in a file
(/home/you/Mailbox?) so you will bloat your server if you don't clear the
output.
alternatively, use "yourscript.php > /home/you/logfile" and send the output
to a text-based logfile for later analysis, then just make sure you aren't
using <b> and stuff in the log :)
HTH
/beau
// -----Original Message-----
// From: Marco Eyzaguirre [mailto:meyzagui@ilender.com.pe]
// Sent: Friday, 21 December 2001 3:28 AM
// To: php-db@lists.php.net
// Subject: RE: [PHP-DB] Run php page automatically
// Importance: High
//
//
// do this (crontab file)
//
// 35 23 * * * root lynx http://www.host.com/dir/file.php
// -accept_all_cookies
//
// it's work!
// marco
//
// -----Mensaje original-----
// De: Harpreet [mailto:harpreet@crispincorp.com]
// Enviado el: Jueves, 20 de Diciembre de 2001 02:21 p.m.
// Para: php-db@lists.php.net; support@mysql.org
// Asunto: [PHP-DB] Run php page automatically
//
//
// I would like to create a php page that would automatically
// run every 10
// minutes or so to delete records from a table. This table has
// an expiration
// field and records r tested by comparing current date with
// the expiration
// date and record is deleted if expired.
//
// Is this possible.
//
// Help is greatly appreciated.
//
// I am using php for my application. I am working on a LInux
// server and using
// mysql as my database.
//
// regards,
// Harpreet Kaur
// Software Developer
// Crispin Corporations Inc.
//
//
//
//
// --
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
// For additional commands, e-mail: php-db-help@lists.php.net
// To contact the list administrators, e-mail:
// php-list-admin@lists.php.net
//
// --
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
// For additional commands, e-mail: php-db-help@lists.php.net
// To contact the list administrators, e-mail:
// php-list-admin@lists.php.net
//