Jump to content

Automatically clear a table


TheLostGuru

Recommended Posts

Yeah you need Cron Jobs. Heres an example:

 

0 0 * * * GET http://myexampledomain.com/clear_table.php > /dev/null

 

That will execute the PHP script at 12AM each morning. Google "Cron Job" or "Cron Jobs Syntax" to get more specific instructions on date and time setting. Also if you have trouble and know the format is right, contact your hosting provider and make sure they've authed you to use the GET daemon.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.