Re: [mysql-support] RE: [PHP-DB] Run php page automatically

From: Date: Thu, 27 Dec 2001 16:25:50 +0000
Subject: Re: [mysql-support] RE: [PHP-DB] Run php page automatically
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-15238@lists.php.net to get a copy of this message
You can set up the task manager to run a php script from the command line: php -q script.php > log.txt The '-q' switch suppresses the HTTP header output, so if you scheduled the script to run with the output redirected to a file, then all echoes etc. in the script would be redirected to the log and you won't have to mess with the web header stuff. Oh, and make sure that the PHP subdirectory is included in the PATH. You can set this manually for testing by: path=%path%;C:\PHP Best regards, Jeremy Reed "George Loch" <george@motoxpress.com> wrote in message news:001101c189a9$8eaa7a60$10b6bad0@halescreative.com... > What if you are on win2K? > > ----- Original Message ----- > From: "Jonathan Hilgeman" <JHilgeman@ecx.com> > To: <harpreet@crispincorp.com>; <php-db@lists.php.net>; <support@mysql.org> > Sent: Thursday, December 20, 2001 12:22 PM > Subject: [mysql-support] RE: [PHP-DB] Run php page automatically > > > > I usually just create a cron job for this. Create your PHP script that > will > > delete the matching records once. Then go into cron and have it run every > 10 > > minutes. > > > > - Jonathan > > > > -----Original Message----- > > From: Harpreet [mailto:harpreet@crispincorp.com] > > Sent: Thursday, December 20, 2001 11:21 AM > > To: php-db@lists.php.net; support@mysql.org > > Subject: [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 > > _______________________________________________ > > > > To unsubscribe yourself from this list please go to > http://www.mysql.org/mailman/listinfo/support and read the > unsubscription > information. > > > > > > support mailing list > > support@mysql.org > > http://www.mysql.org/mailman/listinfo/support > > > >

« previous php.db (#15238) next »