How to interpret and replace the contents of database config.php file

Source: Internet
Author: User

We download the program on the Internet, there are many and do not install the program, but we need to manually modify the database configuration file some also need a website path such as domain name, the following by the charm of the network for everyone to explain

<?Php
$pe [' db_host '] = ' localhost '; server name
$pe [' db_name '] = ' cps1 '; database name
$pe [' db_user '] = ' root '; database user name
$pe [' db_pw '] = '; Database password
$pe [' db_coding '] = ' utf8 '; encoding
$pe [' url_model '] = ' pathinfo_safe '; security Code
$pe [' domain_cps '] = ' cps.cps.com '; site domain name here needs to change to its own local domain name debugging to local directory such as http://localhost/viicms/
$pe [' domain_mark '] = ' cps.cps.com '; watermark or whatever.

define (' Dbpre ', ' cps_ ');
?>

Local debugging I changed it so I put the program in the Viicms folder instead of the root directory and it's written like this.

<?php$pe[' db_host ' = ' localhost '; $pe [' db_name '] = ' viicms '; $pe [' db_user '] = ' root '; $pe [' db_pw '] = ' root '; $pe [' Db_ Coding '] = ' utf8 '; $pe [' url_model '] = ' pathinfo_safe '; $pe [' domain_cps '] = ' http://localhost/viicms/'; $pe [' Domain_mark '] = ' cps.cps.com ';d efine (' Dbpre ', ' cps_ ');? >

What you do not understand, or can not access to consult the charm of the network

How to interpret and replace the contents of database config.php file

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.