thenior Posted August 14, 2009 Share Posted August 14, 2009 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 More sharing options...
.josh Posted August 14, 2009 Share Posted August 14, 2009 cron job Link to comment https://forums.phpfreaks.com/topic/170252-how-to-execute-php-on-certain-date/#findComment-898082 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.