|
How do I use PHP to find a file's directory?
Okay, I am making an installer for a PHP site I am helping work on, and I want the web-installer to automatically detect what the directory is that contains the installer file (ex. if the files was in /web/nuke/install.php, I want it to be able to figure out it is /nuke/ or whatever it may be).
I have tried a couple of different things, but I can never get it to just give me the directory that contains that file.
If anyone could help me with this, I would greatly appreciate it.
Thanks!
|