Jump to content

PHP Server maintenance


LBJuice

Recommended Posts

I'll explain this in a relative example.

I'm making a php eBay template generator and I want to have it so users can upload their auction photos and I'll host them free for 40 days. After those 40 days however, the server will automatically delete them.

I figured I would place all the user photos in unique sub directories, randomly generated each session. For example:

/Uploads
../FUWLN2
.../Pic001.jpg
.../Pic002.jpg
../UDHE34
.../Pic001.jpg
.../Pic002.jpg

Then in a MySQL database, have a table saying "FUWLN2" should be terminated on: 2/10/07 and "UDHE34" should be terminated on 2/21/07 and so on.

I want to know if there is a way to have the sever check this daily or in regular intervals, without user intervention. I know I could have this script ran each time a user enters the page, but that creates overhead, and I want to do this efficiently.
Link to comment
https://forums.phpfreaks.com/topic/33254-php-server-maintenance/
Share on other sites

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.