Re: MySQL DB CleanUp Help!
| From: | Jason Wong | Date: | Thu, 23 Aug 2001 07:30:38 +0000 |
| Subject: | Re: MySQL DB CleanUp Help! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11704@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: Arcadius A. <ahouans@sh.cvut.cz>
To: <php-db@lists.php.net>
Sent: Thursday, August 23, 2001 9:28 PM
Subject: [PHP-DB] MySQL DB CleanUp Help!
> Hello !
> I'd like to automatically delete old entries from my MySQL ....
> Is there any special funcion in PHP or MySQl for doing that ?
> For that purpose, I've created a PHP script (form) that delete old
entries
> when I submit a form ... but I'd like the scrip to do the job
> periodically(for instance once in two days or in a week) without my
> intervention... Is this possible ?
> ( I'ts on a UNIX server)
> Thanks..
> Arcad.
Here's one way to do it:
Create a php page which when accessed will do deletions you require.
Create a cron job which uses wget to access that page.
regards
--
Jason Wong
Gremlins Associates
www.gremlins.com.hk