Page 1 of 1

Include File from Non-Public_HTML Folder [SOLVED]

Posted: Sun Jun 11, 2006 4:24 pm
by tecktalkcm0391
Since PHP is server-side, can't you include or require a file that is not accessable to users outside of the server?

I am just wonder, I am pretty sure you can, but I want to make sure I am right...

Posted: Sun Jun 11, 2006 4:27 pm
by alex.barylski
Yes...in PHP you can inlude files which are inaccesable to the outside world...

For instance in a .htaccess protected directory or outside document root...

Posted: Sun Jun 11, 2006 4:40 pm
by Christopher
It is actually a best practice to only include files from locations that are not publically accessible.