<?php
//截取文件名+预订的路径
$path = "html/"; //目的地
$file = "2007/web/fid.php"; //来源地
$file = $path.basename($file);
echo $file;
?>
//截取文件名+预订的路径
$path = "html/"; //目的地
$file = "2007/web/fid.php"; //来源地
$file = $path.basename($file);
echo $file;
?>
调试欢乐多
$wgPath = "http://127.0.0.1/html/";//fid.php
function makeFile(){
global $wgPath;
$file = $wgPath.'$fid.html';
...
}