Posted by Els on 10/10/60 11:18
Hi,
I've been Googling but can't find it:
How do I get the directory of the current file?
I can get the directory including the filename by $PHP_SELF, but I
would like to obtain just the path between the host and the actual
filename.
Like if the entire path is www.example.com/dir/subdir/filename.html,
I'd like to be able to echo /dir/subdir/.
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Nirvana - Come As You Are
Navigation:
[Reply to this message]
|