file navigation shortcuts

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
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

file navigation shortcuts

Post by Luke »

In file navigation, What does the prefix of ./ mean? I know../ means up one level

I am trying to load a directory, but I have a script that has ./files/bla/foo/bar and I don't know what./ means
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

. means the current directory.
(#10850)
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

are you sure it doesn't mean root directory, because that's how it is treated in this program
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

a leading:
  • / is root
  • . is the current directory, wherever that may be
  • .. is the parent directory, wherever that may be
Post Reply