|
楼主 |
发表于 2008-4-24 10:28:32
|
显示全部楼层
D:\PC_webserver\Apache2.2\htdocs/system/
里面有 \ 还有 / , 有点别扭
index.php 前面有段代码
if (strpos($system_folder, '/') === FALSE)
{
if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
{
$system_folder = realpath(dirname(__FILE__)).'/'.$system_folder;
}
}
else
{
// Swap directory separators to Unix style for consistency
$system_folder = str_replace("\\", "/", $system_folder);
}
我想它的意思是全用 '/',不过没处理好,要不然直接这样得了
$system_folder = realpath(dirname(__FILE__)).'/'.$system_folder;
上面的代码应该这样
if (strpos($system_folder, '/') === FALSE)
{
if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
{
$system_folder = realpath(dirname(__FILE__)).'/'.$system_folder;
}
}
// Swap directory separators to Unix style for consistency
$system_folder = str_replace("\\", "/", $system_folder);
[ 本帖最后由 lifeibest 于 2008-4-24 10:45 编辑 ] |
|