ShopWT官网-php多用户商城系统-在路上

标题: 入口文件index.php文件中的这个是不是有点多余 [打印本页]

作者: ziluopao    时间: 2016-3-20 10:32
标题: 入口文件index.php文件中的这个是不是有点多余
www下的index.php中有
$site_url = strtolower('http://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/index.php')).'/shop/index.php');

//@header('Location: '.$site_url);

include('shop/index.php');

其中把$site_url = strtolower('http://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/index.php')).'/shop/index.php');去掉也没有啥变化,这句是不是有点多余呢?





欢迎光临 ShopWT官网-php多用户商城系统-在路上 (https://bbs.shopwt.com/) Powered by Discuz! X3.4