Using (DATE) timestamp to expire/delete entries

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
polosport6699
Forum Commoner
Posts: 35
Joined: Wed Jun 11, 2003 3:19 pm

Using (DATE) timestamp to expire/delete entries

Post by polosport6699 »

I was wondering how to use the date function to make a entry expire after x amount of days.

This needs to be specific to each entry.

Im greatly thankful for any help
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

See: XVII. Date and Time functions - time()

Code: Select all

$futureTime = time()+300; // Current unix timet + 5 mins
Regards,
Post Reply