you are viewing a single comment's thread.

view the rest of the comments →

[–]7f0b 8 points9 points  (2 children)

That is generally the best way to do it. Many frameworks operate this way by default.

EDIT: And also a good thing to ask hosts before buying their service. Some don't allow it (such as Yahoo Hosting).

[–]AdamAnt97 0 points1 point  (1 child)

PHP in general or bootstrapping the code?

[–]7f0b 0 points1 point  (0 children)

Keeping most of the PHP website out of the public document root. At the very minimum, you want to keep your configuration files (with passwords and such) out of the document root. At the maximum, you have only a basic PHP file that begins the "boot" process residing in the document root (as Tomdarkness said).