current directory
Moderator: General Moderators
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
current directory
is there a function to get the current directory that php is pointing to or somthing.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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.
Here one I ran across:
http://us2.php.net/dirname
-- read the comments below also, there's a few in there.