Similar wordpress mode configuration Build Project

Source: Internet
Author: User
demand is like this: need to implement a similar to the WordPress way, through configuration, build database tables and projects, no relevant experience, ask God to introduce the implementation of simple, or good practice, need to pay attention to what points!

Note: The project is configured to generate multiple dashboard. , the reason to configure the build is to consider dashboard compatibility.

Is there a good way or good practice for the great Gods? Exchange One HA

In the wind two gives the opinion:

    • First set up an install folder;

    • Write a install.php file;

    • In the file, provide several user input boxes, require users to fill in the database name, port, address and other information;

    • After receiving the input, according to the information that the user fills in, constructs the SQL statement similar to the CREATE table, and executes;

    • fopen open a file, such as config.php, and then write the relevant configuration information to this file;

    • If necessary, use PHP's related file functions to copy some files to the final execution location;

    • Error handling, if you cannot create a config.php file, you need to prompt the user not to create the file, etc.

Reply content:

Demand is like this: need to implement a similar to the WordPress way, through configuration, build database tables and projects, no relevant experience, ask God to introduce the implementation of simple, or good practice, need to pay attention to what points!

Note: The project is configured to generate multiple dashboard. , the reason to configure the build is to consider dashboard compatibility.

Is there a good way or good practice for the great Gods? Exchange One HA

In the wind two gives the opinion:

    • First set up an install folder;

    • Write a install.php file;

    • In the file, provide several user input boxes, require users to fill in the database name, port, address and other information;

    • After receiving the input, according to the information that the user fills in, constructs the SQL statement similar to the CREATE table, and executes;

    • fopen open a file, such as config.php, and then write the relevant configuration information to this file;

    • If necessary, use PHP's related file functions to copy some files to the final execution location;

    • Error handling, if you cannot create a config.php file, you need to prompt the user not to create the file, etc.

    1. First set up an install folder;

    2. Write a install.php file;

    3. In the file, provide several user input boxes, require users to fill in the database name, port, address and other information;

    4. After receiving input, according to the information that the user fills out, constructs CREATE TABLE the similar SQL statement, and executes;

    5. fopen open a file, such as config.php, and then write the relevant configuration information to this file;

    6. If necessary, use PHP's related file functions to copy some files to the final execution location;

    7. Error handling, if you cannot create a config.php file, you need to prompt the user not to create the file, etc.

  • 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.