Jump to content

php date/time ?


jd2007

Recommended Posts

Yes, if you need to have an automated process that runs every 30 days, use a cron job.

 

However, this might not be a necessity. For example, if you need to make something appear to happen every 30 days to a user, you can check if 30 days have passed since the event each time they log in perhaps. If 30 or more days have passed, you can perform your process.

 

It rather depends on the situation.

Link to comment
https://forums.phpfreaks.com/topic/59805-php-datetime/#findComment-297359
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.