aliento Posted November 10, 2011 Share Posted November 10, 2011 Hello, I would like to know how to include a root file in a 4 deep folder using dots. Is it good : include "../../../config.php" or i can simple include "./config.php" ? How does this works? Is it better to write all the path? Thank you Link to comment https://forums.phpfreaks.com/topic/250851-path-with-dots/ Share on other sites More sharing options...
trq Posted November 10, 2011 Share Posted November 10, 2011 ./ means the current directory ../ is the previous directory ../../ means two directories up and so on. This has little to do with PHP and has been how file paths have been referenced since the 60's. Link to comment https://forums.phpfreaks.com/topic/250851-path-with-dots/#findComment-1286974 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.