http://www.abc.com//uploadfiles/images PHP 程序有问题。访问路径多个/ 符号网站 图片显示不出来麻烦有谁知道的。谢谢
PHP.网站打开路径多个/ 这是PHP程序<?php
session_start();
define('ROOT_PATH',str_replace('\\includes','\\',dirname(__FILE__)));
require_once(ROOT_PATH.'/data/config.php');
require_once(ROOT_PATH.'/includes/cls_mysql.php');
require_once(ROOT_PATH.'/includes/common.php');
require_once(ROOT_PATH.'/includes/libs/Smarty.class.php');
require_once(ROOT_PATH."/includes/lib_info.php");
global $db,$tb,$CFG,$smarty;
$db=@new cls_mysql($db_host,$db_user,$db_pass,$db_name,$db_chart);
$db->connect(); $tb=@new xtable($db_phix);
$CFG = GET_CFG();
$smarty=@new Smarty;
$smarty->template_dir =ROOT_PATH."/themes/";
$smarty->compile_dir =ROOT_PATH."/template/temp/";
$smarty->cache_dir =ROOT_PATH."/template/cache_dir/";
//缃戠珯鍚岖О
$smarty->assign('sitetitle',$CFG['sitetitle']);
$smarty->assign('siteurl',$CFG['siteurl']);
$smarty->assign('sitekey',$CFG['sitekey']);
$smarty->assign('sitedesc',$CFG['sitedesc']);
$smarty->assign('notice',$CFG['notice']);
$smarty->assign('copyright',$CFG['copyright']);
if(isset($_SESSION['username']))
{
$smarty->assign('userinfo',$_SESSION['username']);
}
$lx_info=get_info('鑱旗郴鏂瑰纺');
$smarty->assign('lx_body',$lx_info['body']);?>http://www.abc.com//uploadfiles/images就像这样。多个/ 符号 图片显示不出来麻烦有谁知道的。谢谢(2003+IIS+MYSQL+PHP)
PHP.网站打开路径多个/ 这是PHP程序<?php
session_start();
define('ROOT_PATH',str_replace('\\includes','\\',dirname(__FILE__)));
require_once(ROOT_PATH.'/data/config.php');
require_once(ROOT_PATH.'/includes/cls_mysql.php');
require_once(ROOT_PATH.'/includes/common.php');
require_once(ROOT_PATH.'/includes/libs/Smarty.class.php');
require_once(ROOT_PATH."/includes/lib_info.php");
global $db,$tb,$CFG,$smarty;
$db=@new cls_mysql($db_host,$db_user,$db_pass,$db_name,$db_chart);
$db->connect(); $tb=@new xtable($db_phix);
$CFG = GET_CFG();
$smarty=@new Smarty;
$smarty->template_dir =ROOT_PATH."/themes/";
$smarty->compile_dir =ROOT_PATH."/template/temp/";
$smarty->cache_dir =ROOT_PATH."/template/cache_dir/";
//缃戠珯鍚岖О
$smarty->assign('sitetitle',$CFG['sitetitle']);
$smarty->assign('siteurl',$CFG['siteurl']);
$smarty->assign('sitekey',$CFG['sitekey']);
$smarty->assign('sitedesc',$CFG['sitedesc']);
$smarty->assign('notice',$CFG['notice']);
$smarty->assign('copyright',$CFG['copyright']);
if(isset($_SESSION['username']))
{
$smarty->assign('userinfo',$_SESSION['username']);
}
$lx_info=get_info('鑱旗郴鏂瑰纺');
$smarty->assign('lx_body',$lx_info['body']);?>http://www.abc.com//uploadfiles/images就像这样。多个/ 符号 图片显示不出来麻烦有谁知道的。谢谢(2003+IIS+MYSQL+PHP)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货