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 Quote Link to comment 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. 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.