I'm not a PHP guy, just cut and paste code sometimes. This works but it isn't very elegant. My page gets lots of views and I would like to reduce machine overhead and deliver the page as fast as possible. Any suggestions? Thanks!
I'm creating a list of links on a page. Each day the link thats 7 days old drops off and a new one appears. The .txt files have the html link code for one day.
<?$today = date("z",(time()-3600))+1;?>
<?$today1 = date("z",(time()-3600));?>
<?$today2 = date("z",(time()-3600))-1;?>
<?$today3 = date("z",(time()-3600))-2;?>
<?$today4 = date("z",(time()-3600))-3;?>
<?$today5 = date("z",(time()-3600))-4;?>
<?$today6 = date("z",(time()-3600))-5;?>
<ul>
<li><?INCLUDE "/usr/home/bcmurray/public_html/features/$today.txt";?></li>
<li><?INCLUDE "/usr/home/bcmurray/public_html/features/$today1.txt";?></li>
<li><?INCLUDE "/usr/home/bcmurray/public_html/features/$today2.txt";?></li>
<li><?INCLUDE "/usr/home/bcmurray/public_html/features/$today3.txt";?></li>
<li><?INCLUDE "/usr/home/bcmurray/public_html/features/$today4.txt";?></li>
<li><?INCLUDE "/usr/home/bcmurray/public_html/features/$today5.txt";?></li>
<li><?INCLUDE "/usr/home/bcmurray/public_html/features/$today6.txt";?></li>
</ul></li>