
Originally Posted by
GStyle
Hi there,
as I can see there is no hyperlink at all
Your 'current' directory is always
'.'
Yes, I haven't put the code in for the hyperlink yet. 
By current directory, I meant the directory, not the full path. I found the code that can get me there:
PHP Code:
<?php
// get last directory in current working directory
$thisdir = substr(strrchr(getcwd(), "/"), 1);
echo $thisdir;
?>
Now I'm having difficulty getting back to my "root" directory--it's driving me nuts:
PHP Code:
$dir = opendir(".");
if my path is /bar/foo/foo/foo
how do I get back to the directory "bar" from wherever I may be? If "." is the current directory path, how do I specify "bar"?
Bookmarks