Jump to content

How do I...


devildog10920

Recommended Posts

It means setting up a scheduled task on the server which executes a php script which will do the expiry. Only really useful if your server is running Linux and you have access to the server to do this.

The other way is to have a "time_to_expire" field in a database. And each time the webpage is loaded, it checks to see if the time_to_expire is less than the current time. If it is then set a flag in the databse which indicates that it has expired.
Link to comment
Share on other sites

[!--quoteo(post=361421:date=Apr 4 2006, 12:51 AM:name=PHPDesigner)--][div class=\'quotetop\']QUOTE(PHPDesigner @ Apr 4 2006, 12:51 AM) [snapback]361421[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Im not very familier with that.
[/quote]

I thort i throw this in ok.

[code]
$dosomethinkday = '01'; // day of month
$today = date("M d, Y");
$doit = date("M $dosomethinkday, Y");
if ($doit == $today) {IF 2 DATES MATCH LET'S DO SOMETHINk}
[/code]


It will also use the time() format to do somethink ok.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.