Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
王兴勇
/
helper-config
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3fb40673
authored
Oct 26, 2017
by
王兴勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.MD
parent
a1f1b10f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
README.MD
+1
-1
No files found.
README.MD
View file @
3fb40673
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment