Created
December 1, 2012 08:10
-
-
Save ego008/4181066 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('SAESPOT_VER', '1.02'); | |
$IS_SAE = isset($_SERVER['HTTP_APPNAME']); | |
if ($IS_SAE){ | |
//数据库主机名或IP 主 | |
$servername_m = SAE_MYSQL_HOST_M; | |
//数据库主机名或IP 从 | |
$servername_s = SAE_MYSQL_HOST_S; | |
//数据库用户名 | |
$dbusername = SAE_MYSQL_USER; | |
//数据库密码 | |
$dbpassword = SAE_MYSQL_PASS; | |
//数据库名 | |
$dbname = SAE_MYSQL_DB; | |
//数据端口 | |
$dbport = SAE_MYSQL_PORT; | |
//MySQL字符集 | |
$dbcharset = 'utf8'; | |
//系统默认字符集 | |
$charset = 'utf-8'; | |
// 定义缓存 | |
$MMC = memcache_init(); | |
}else{ | |
//数据库主机名或IP 主 | |
$servername_m = 'localhost'; | |
//数据库主机名或IP 从 | |
$servername_s = 'localhost'; | |
//数据库用户名 | |
$dbusername = 'root'; | |
//数据库密码 | |
$dbpassword = '123'; | |
//数据库名 | |
$dbname = 'yunbbs'; | |
//数据端口 | |
$dbport = '3306'; | |
//MySQL字符集 | |
$dbcharset = 'utf8'; | |
//系统默认字符集 | |
$charset = 'utf-8'; | |
// 定义缓存 | |
$MMC = memcache_connect('127.0.0.1',11211); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment