PHP site After the installation of the root directory has 3 folders, respectively, install, statics, System. PHP Daniel can be described in detail under these 3 folders role

Source: Internet
Author: User
I am a novice php, PHP is not very familiar with the PHP site after the installation of the root directory installed, statics, System, three folders, I would like to ask these 3 folders are put what? root directory. These folders are available under System,


Reply to discussion (solution)

What system does the landlord install?

Different framework directory structure is not the same, if it is the mainstream framework you know under Google, the self-written framework can only look at the name guess, and then read the code, but it is generally MVC this

To guess from a literal understanding:
Install is installed on the site, usually some initialization operation
Statics should be some static files?
System is the program file for the project or it may be a background management
Specific analysis According to the actual situation

Landlord installed what is the program. The directories are set by the PHP program developers themselves.
Install is generally used to give users a fool-type installation. Direct input URL/install access automatic installation
Statics mainly put static resources, than chip JS script, etc.
System this should be a PHP management program, including a common directory library.

Looking at this structure, this program is a bit like an imperial cms. All PHP programs are in the system, static full station?

Install installation
Static statics
System Systems
Caches cache
Config configuration
Funcs function Library
Lagnuages Language Pack
Libs Core Library
Modules model (many for database operations)
Plugin plug-in

Figure 1
Install installation files
Statics static files, such as Css,images
System-related files
index.php Call Install boot file for this software

Figure 2
Caches store cached data, such as template cache, database query cache, etc.
Config Web settings file, such as database connection account number, site path, etc.
Funcs basic methods, storing common methods
Languages store language packs for switching languages
Libs core file for the underlying operation of the system
Modules module file, how to store the extension function
Plugin plug-in, storage method for third-party development
index.html Boot file

From a literal understanding, very intuitive install,system,static

4 Brother Rarounitriol, is the whole station static, is a CMS system, you can judge what frame to use.

Have a PHP master no

Well, I've seen that. System in the name of WC detail 526541010

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.