PDA

View Full Version : Access to folder outside web root


mikesir87
12-05-2008, 07:55 PM
Would it be possible to have the file manager allow us as developers to view one folder up from the web root? I have some PHP files in which I would like to out of the web root. These contain like the database connection functions that I don't want others to be able to somehow get a hold of.

I do love the site though. It's clean, and flows smoothly (and quickly!).

Thanks!

Tyler
12-05-2008, 08:27 PM
I'm sorry, there is no way for you to go above the public_html directory. As long as you secure your site then you will be fine having the connection files in the public_html directory. Just don't let those files print anything to the web browser.

Think of it this way too: if you have an insecure file that lets someone include and echo a file, then what is stopping them from including the file public_html/./database.php ? that would go one directory above and defeat your attempt at securing your files.

UnlimitedMB
12-05-2008, 11:51 PM
If you name your function files with the .php extension then nobody can view the source of it anyway.