Commit 3fb40673 by 王兴勇

Update README.MD

parent a1f1b10f
...@@ -38,7 +38,7 @@ $__DB_CONFIG = require_db_config($config_name); ...@@ -38,7 +38,7 @@ $__DB_CONFIG = require_db_config($config_name);
#####以下一断是为了兼容命令行模式执行PHP时使用,不使用命令行可忽略 #####以下一断是为了兼容命令行模式执行PHP时使用,不使用命令行可忽略
```php ```php
//在 config.ini.php 文件头部写入以下代码 //在 config.ini.php 文件头部写入以下代码
if ( ! function_exists('local')) { if ( ! function_exists('require_db_config')) {
$path = dirname(dirname(dirname(__DIR__))); $path = dirname(dirname(dirname(__DIR__)));
require sprintf('%s%sconfig%2$scommon.php', $path, DIRECTORY_SEPARATOR); require sprintf('%s%sconfig%2$scommon.php', $path, DIRECTORY_SEPARATOR);
$__DB_CONFIG = require_db_config('local'); $__DB_CONFIG = require_db_config('local');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment