Jump to content

How to execute php on certain date


thenior

Recommended Posts

Hello,

 

We had a guy build the company I work for a website, and he put in his own php shopping cart. Needless to say, it's a very bare bones cart - it functions, but looks like he worked on it for 24 hours straight and it's a bit messy.

 

One of the functions has a coupon code, and a delete script. You hit the delete button and it deletes coupon code with ID ##.

 

Problem is, we need to specify dates that coupons automatically turn on/off. I don't know how to do this. I know an if statement would work, but I would have to load the coupon code page that day - what if no one logs in that day?

 

Basically, I need it to execute on a certain day regardless whether or not anyone loads the page.

Link to comment
https://forums.phpfreaks.com/topic/170252-how-to-execute-php-on-certain-date/
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.