current directory

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

current directory

Post by shiznatix »

is there a function to get the current directory that php is pointing to or somthing.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post 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.
Post Reply