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.
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 input, according to the information that the user fills out, constructs CREATE TABLE
the similar SQL statement, 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.