Jump to content

Need to modify this code....


longhollow

Recommended Posts

Hi,

 

I'm not a php guy.  Several months ago folks here suggested the code below.  It has been working very well. 

It displays 5 lines of content, url links, from stored .txt files.  Each day a new line is added and one falls off.

 

<?php

for($i=1; $i>=-3; $i--) {

$today = date("z",(time()-3600))+$i;

?>

  -   <? INCLUDE "/usr/home/bcmurray/public_html/features/$today.txt";?> <BR>

<?php

}

?>

 

Now my users have asked me to offer a new page that shows an archive of my past url links. 

 

So, I need to modify the code to display all the url links for the year.  It needs to start counting backwards from todays date and stop on day 1.

 

Any help would be greatly appreciated.

 

Thanks,

Bruce

Link to comment
https://forums.phpfreaks.com/topic/160982-need-to-modify-this-code/
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.