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
Luke
The Ninja Space Mod
Posts: 6424 Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA
Post
by Luke » Tue Jun 06, 2006 4:22 pm
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
Christopher
Site Administrator
Posts: 13596 Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US
Post
by Christopher » Tue Jun 06, 2006 4:25 pm
. means the current directory.
(#10850)
Luke
The Ninja Space Mod
Posts: 6424 Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA
Post
by Luke » Wed Jun 07, 2006 1:07 am
are you sure it doesn't mean root directory, because that's how it is treated in this program
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Jun 07, 2006 1:09 am
a leading:
/ is root
. is the current directory, wherever that may be
.. is the parent directory, wherever that may be