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! 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'); 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 include('../../yourfile.php'); Thanks wigpip! It worked! Thanks :L 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
Archived
This topic is now archived and is closed to further replies.