phpizza Posted April 29, 2009 Share Posted April 29, 2009 I know that the below is a change directory function but I need to know what " ./.." does chdir("./.."); thanks for any help... Quote Link to comment Share on other sites More sharing options...
Adam Posted April 29, 2009 Share Posted April 29, 2009 Looks to me like it's trying to change directory to the parent directory of the current / relative directory. Quote Link to comment Share on other sites More sharing options...
phpizza Posted April 29, 2009 Author Share Posted April 29, 2009 So up one level like In html html "../ " = php "./.." thanks... Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted April 29, 2009 Share Posted April 29, 2009 So up one level like In html html "../ " = php "./.." thanks... They're both the same. You can do chdir('../'). In fact, chdir('..') does the same thing. All you need to know is '..' is up one level. './' or '.' refers to the current directory. So when you have './..', it says, in the current directory, go up one level. It's just a very explicit way of writing it. Quote Link to comment Share on other sites More sharing options...
phpizza Posted April 29, 2009 Author Share Posted April 29, 2009 Thank You Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.