Page 1 of 1

current directory

Posted: Tue Jul 12, 2005 7:09 am
by shiznatix
is there a function to get the current directory that php is pointing to or somthing.

Posted: Tue Jul 12, 2005 7:18 am
by Chris Corbyn

Posted: Tue Jul 12, 2005 10:28 am
by theda
In my attempt to figure out how to get the file name without extension, I've run across about three different ways to find the directory... Some with arrays, and others with $_SERVER nonsense.

Here one I ran across:

http://us2.php.net/dirname
-- read the comments below also, there's a few in there.