Re: Remove automatically
| From: | Matthew Ballard | Date: | Wed, 13 Dec 2000 18:59:25 +0000 |
| Subject: | Re: Remove automatically | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30140@lists.php.net to get a copy of this message | ||
There is no function in PHP or MySQL (that I know of) to run a command at a particular time each day, but if you write a PHP script to do what you want upon loading, depending on your operating system where PHP is running, it is usually possible to set it up to run the script at a particular time everyday.
Matthew
At 01:05 PM 12/13/2000 +0200, you wrote:
Hello, I have a MySQL database and I want to make in php a function that will delete automatically some records from a table. For instance, I have a table which has a filed named "Date". I want that in every day, at a certain time, all the records from that table and for which "Date"<=today, to be removed automatically. How can this be made in php? Thanks, Ghita -- 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