Jump to content

nonpublic html including nonpublic html


smerny

Recommended Posts

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  :confused:

Link to comment
https://forums.phpfreaks.com/topic/185306-nonpublic-html-including-nonpublic-html/
Share on other sites

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  :confused:

 

You can always include "/home/username/private/index.php" from /public_html/index.php.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.