i'm creating a page which provides links to download documents, it resides at, let say,
/mathematics/tutorials/document/
the url: http://www.abcdef.com/mathematics/tutorials/document/documentlist.php
then the documents which can be downloaded reside in other folders, let say, mathematics/download/
the url:
http://www.abcdef.com/mathematics/download/tutorial1.doc
my code for the link is
echo "<a href=\"". $filename."\"".style.">\n";
echo "<img scr=\"./img/".$image.."\" border=0>\n";
echo $dspfilename."\n";
echo "</a>\n";
$filename keeps the location of the document to be downloaded
$dspfilename keeps the name of the document
the problem is when i click the link, it does not provide the correct path to the document.
the url becomes : http://www.abcdef.com/mathematics/tutorials/document/mathematics/download/tutorial1.doc
i want to redirect the path from mathematics/tutorials/document/ to mathematics/download/, how can i solve this problem?