- Impact
- 485
Let's say I have hundreds of HTML files, each named for a particular day of the year.
I need to use the PHP 'include' code so on any particular system date, the matching HTML file is included. So, since today is August 27, 2008, the 'include' file should be 2008-08-27.html
Understand that the html files have not been created yet, so the naming of these files can be in a different date format if need be.
------------------------
Then I need to have another 'include' code that will take the system date and subtract a number of days, so it will 'include' a HTML file that is X number of days in the past.
For example, today is August 27, 2008, and I want the web page to 'include' a file named for a date 3 days ago, which would be 2008-08-24.html.
------------------------
Seems like a fairly simple thing to do, but I don't know coding well enough to figure it out. Any help would be great!
.
I need to use the PHP 'include' code so on any particular system date, the matching HTML file is included. So, since today is August 27, 2008, the 'include' file should be 2008-08-27.html
Understand that the html files have not been created yet, so the naming of these files can be in a different date format if need be.
------------------------
Then I need to have another 'include' code that will take the system date and subtract a number of days, so it will 'include' a HTML file that is X number of days in the past.
For example, today is August 27, 2008, and I want the web page to 'include' a file named for a date 3 days ago, which would be 2008-08-24.html.
------------------------
Seems like a fairly simple thing to do, but I don't know coding well enough to figure it out. Any help would be great!
.






