php使用copy函数更新配置文件的方法 本文实例讲述了php使用copy函数更新配置文件的方法。分享给大家供大家参考。具体如下:
_saveconfig.php文件如下:
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
config.php配置文件如下:
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
'localhost', //主机名
'user' => 'root', //用户名
'pwd' => '', //密码
'db' => 'sino', //数据库名
'prefix' => 'sin_' //数据库前缀
);
$gsite = array
(
'sitename' => '公司名',
'sitenameen' => 'we are the company',
'sitekeywords' => '药物,医药,制药',
'sitedescription' => '公司名是一家从事00方面的公司'
);
$gupload = array
(
'dir' => 'uploads',
'imagewidth' => '120',
'imageheight' => '*'
);
$contactus = '';
$menuhiddendiv = ;
$fromurl=$_server[http_referer]?$_server[http_referer]:$http_server_vars[http
_referer];
$drootdir = '../';
$conn = mysql_connect($gdb['host'],$gdb['user'],$gdb['pwd']);
mysql_select_db($gdb['db']) or die('database connect error!');
mysql_query(set names 'gbk');
?>
希望本文所述对大家的php程序设计有所帮助。
http://www.bkjia.com/phpjc/1018367.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/1018367.htmltecharticlephp使用copy函数更新配置文件的方法 本文实例讲述了php使用copy函数更新配置文件的方法。分享给大家供大家参考。具体如下: _saveconfig.ph...
