php使用copy函数更新配置文件的方法,本文实例讲述了php使用copy函数更新配置文件的方法。分享给大家供大家参考。具体如下:
_saveconfig.php文件如下:
'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/1019071.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/1019071.htmltecharticlephp使用copy函数更新配置文件的方法, 本文实例讲述了php使用copy函数更新配置文件的方法。分享给大家供大家参考。具体如下: _saveconfig...