Why not install frameworks in the root folder

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
Live24x7
Forum Contributor
Posts: 194
Joined: Sat Nov 19, 2011 9:32 am

Why not install frameworks in the root folder

Post by Live24x7 »

I am exploring some of the MVC frameworks and almost all frameworks recommend not to install the framework in the root folder but outside it.
What is the exact risk of installing in the root folder ? Just a bit curious :roll:
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Why not install frameworks in the root folder

Post by social_experiment »

If something is installed outside the root folder it cannot be accessed via the url
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
kon
Forum Newbie
Posts: 19
Joined: Sat Mar 03, 2012 5:43 am

Re: Why not install frameworks in the root folder

Post by kon »

What is the root folder for you ? the public_html ?
Post Reply