I created a script which creates a webpage daily. I keep 7 days of historical reports. Before the script gets run, the page in the main directory gets moved to directory 1, what's in directory 1 gets moved to directory 2, and so on. In the webpage, I have hyperlinks to the previous days reports, however the problem is that when the report that was originally in the main directory gets moved to directory 1, the hyperlinks will not work properly anymore because of the way I have them set up (based on the page being in the main directory).
Just to clarify...
The link part of the page is set up like this:
Any suggestions as to how I can make this work without having to specify the full path (just in case I decide to move the location of the files at some point)?
Any help would be greatly appreciated.
Thanks,
John
Just to clarify...
The link part of the page is set up like this:
Code:
Days Ago: <A HREF="1/test_df.html">1</A>
<A HREF="2/test_df.html">2</A>
<A HREF="3/test_df.html">3</A>
<A HREF="4/test_df.html">4</A>
<A HREF="5/test_df.html">5</A>
<A HREF="6/test_df.html">6</A>
<A HREF="7/test_df.html">7</A>
<BR>
Any suggestions as to how I can make this work without having to specify the full path (just in case I decide to move the location of the files at some point)?
Any help would be greatly appreciated.
Thanks,
John