gorilla1
07-19-2002, 01:00 AM
An elementary question, but I am trying to link to a page that is in the directory (the parent of the directory where this php script resides) above. I tried the link like so, but I guess I am not remembering correctly, because it did not work...
echo "<a href=\".../special.php3\">Click here to go</a>"
G
mordred
07-19-2002, 01:41 AM
Your only error is a tiny typo:
echo "<a href=\".../special.php3\">Click here to go</a>"
That should be only two dots before the slash, not three.
gorilla1
07-19-2002, 01:47 AM
mordred,
Thanks very much. I don't think I would ever have stumbled on that just trying myself.
G
Jeewhizz
07-19-2002, 11:01 AM
for reference, .. refers to the parent directory and . refers to the current directory.
To go up two directories, you would use ../../file.php
Jee