smerny Posted December 16, 2009 Share Posted December 16, 2009 If I have a single page "index.php" in my public_html that includes "../private/index.php", and I have other pages in the private folder that I want to include.... is there a different way, or do I have to always type "../private/whatever.php" even if it's in the same folder as the page that is including it (just because the page that is including it was included by the page in the public_html... if you follow me Link to comment https://forums.phpfreaks.com/topic/185306-nonpublic-html-including-nonpublic-html/ Share on other sites More sharing options...
oni-kun Posted December 16, 2009 Share Posted December 16, 2009 If I have a single page "index.php" in my public_html that includes "../private/index.php", and I have other pages in the private folder that I want to include.... is there a different way, or do I have to always type "../private/whatever.php" even if it's in the same folder as the page that is including it (just because the page that is including it was included by the page in the public_html... if you follow me You can always include "/home/username/private/index.php" from /public_html/index.php. Link to comment https://forums.phpfreaks.com/topic/185306-nonpublic-html-including-nonpublic-html/#findComment-978227 Share on other sites More sharing options...
smerny Posted December 16, 2009 Author Share Posted December 16, 2009 but then on "/home/username/private/index.php", if I want to include "/home/username/private/includes/blah.php"... do i have to write that all out or is there another way? if i just do "/includes/blah.php" it's going to look in the public_html folder Link to comment https://forums.phpfreaks.com/topic/185306-nonpublic-html-including-nonpublic-html/#findComment-978236 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.