Reply to variable for directory

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация