luigimia Posted January 25, 2012 Share Posted January 25, 2012 How do I include a file that is located two directories above the file that I want to include the file into? My absolute hosting path is /home/content/52/8840652/html if this would be of any use. I'm not quite sure about the PHP include functions. Any help would be greatly appreciated, Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/255794-include-file-two-directories-up/ Share on other sites More sharing options...
wigpip Posted January 25, 2012 Share Posted January 25, 2012 include('../../yourfile.php'); Quote Link to comment https://forums.phpfreaks.com/topic/255794-include-file-two-directories-up/#findComment-1311256 Share on other sites More sharing options...
luigimia Posted January 25, 2012 Author Share Posted January 25, 2012 Quote include('../../yourfile.php'); Thanks wigpip! It worked! Thanks :L Quote Link to comment https://forums.phpfreaks.com/topic/255794-include-file-two-directories-up/#findComment-1311257 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.