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 ? 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? 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
Archived
This topic is now archived and is closed to further replies.