dmccabe Posted March 26, 2008 Share Posted March 26, 2008 Ok lets say my site is like this: /root/config.php /depts/callcentre/index.php /depts/it/index.php How do I include the config.php in the call centre's index.php ? If it was in the dir then I would simply use include('config.php') or if it were in another higher up dir then include('/dept/config.php'); but how do I include something in the lower dir's ? Quote Link to comment https://forums.phpfreaks.com/topic/97993-including-a-file-in-a-lower-dir/ Share on other sites More sharing options...
wildteen88 Posted March 26, 2008 Share Posted March 26, 2008 Use: include './../../root/config.php'; maybe? Quote Link to comment https://forums.phpfreaks.com/topic/97993-including-a-file-in-a-lower-dir/#findComment-501376 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.