copy() 函数复制文件。该函数如果成功则返回 true,如果失败则返回 false。
语法
copy(file,to_file)
| 参数 | 描述 |
|---|---|
| file | 必需。规定要复制的文件。 |
| to_file | 必需。规定复制文件的目的地。 |
_saveconfig.php文件如下:
config.php配置文件如下:
立即学习“PHP免费学习笔记(深入)”;
'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 = '';
$menuhiddenp = "";
$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'");
?>











