Re: setting content in db to expire

From: Date: Fri, 06 Oct 2000 13:44:03 +0000
Subject: Re: setting content in db to expire
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-3380@lists.php.net to get a copy of this message
I usually use date() and mktime() to insert an 'expiration' date for the record. Then, I have a cron job that calls a php script which just deletes the records with 'expiration' dates prior to today. (MySQL has a CURRENTDATE() fucntion...I forget the exact name..). I've had no problems with it. Hope this helps! Joe

« previous php.db (#3380) next »