Jump to content

Display page dependent on age of link


mac-mark

Recommended Posts

I am relavively new to PHP and scripting but really need some advice.  I am trying to automate a monthly report process, these reports are viewed as html pages via a website. Let's say there are 20 reports all together, however some months there may only 15 new ones. At the moment I am going into the html code and changing the file paths for the links that don't have new reports for that month so that they display a 'no new reports for this link' page. Is it possible to write some PHP code that will check the age of a link/file when it is clicked in the browser and it is hasn't been updated int the last month (31 days) go to the 'no new reports for this month' page instead instead of displaying the non-updated file? I hope this makes sense. I would greatly appreciate any helpful tips.

Link to comment
https://forums.phpfreaks.com/topic/150681-display-page-dependent-on-age-of-link/
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.