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... Link to comment https://forums.phpfreaks.com/topic/156137-solved-chdir-address/ 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. Link to comment https://forums.phpfreaks.com/topic/156137-solved-chdir-address/#findComment-821916 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... Link to comment https://forums.phpfreaks.com/topic/156137-solved-chdir-address/#findComment-821937 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. Link to comment https://forums.phpfreaks.com/topic/156137-solved-chdir-address/#findComment-821945 Share on other sites More sharing options...
phpizza Posted April 29, 2009 Author Share Posted April 29, 2009 Thank You Link to comment https://forums.phpfreaks.com/topic/156137-solved-chdir-address/#findComment-821957 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.