How to create an install installation file-PHP Tutorial

Source: Internet
Author: User
How do I create an install installation file. After the dream program is completed, if you want to send it to someone else, you need to extract the Database SQL file and modify the database connection. in this case, the customer's operations are not very user-friendly, for example, after the Dream program is completed, if you want to send it to someone else, you need to extract the Database SQL file and modify the database connection. in such a few steps, the customer's operations are not very user-friendly, the following describes how to make it easier to install a website:

1. open the install folder and perform the following four steps:

1、delete index.html
2. change index. php. bak to index. php.
3rd delete the install_lock.txt file
4. change module-install.php.bak to module-install.php
2. Next, this is the focus. you need to export your database files. in this way, you can install your database directly for user operations, saving a lot of trouble.

There are sql-dfdata.txt and sql-dftables.txt files under the install folder

The sql-dfdata.txt file is the data insertion file

The sql-dftables.txt is used to create data tables and field files

The next step is to export your database.

1. open phpmyadmin and select Zhimeng database, select export, and perform the following operations (for example)

Click to copy the exported data warehouse information to the sql-dftables.txt File (this file is used to create data tables and fields)

2. the next step is to export the data information, that is, the insert statement.

Then, save the imported data to the sql-dfdata.txt file.

Now, you can send your dream to your customers, upload it to the space, and directly execute http: // domain name/install/fill in the database information to install it.

...

Related Article

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.