国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

入口文件index.php中引入不存在的 .shtml文件
羅秋菊
羅秋菊 2018-05-10 17:14:12
0
1
1318

新手,不懂,請(qǐng)各位大神解答,index.php程式碼如下

<?php

header("Content-type: text/html; charset=utf-8 ");

date_default_timezone_set('Etc/GMT-8');

set_time_limit(0);

//定義網(wǎng)站路徑D:\website\seerpro\

define('WEB_ROOT', rtrim(dirname(__FILE__), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR);

//定義擴(kuò)充庫路徑

#RO#define('EXT_LIB_

##//定義擴(kuò)充庫路徑

#RO 'lib/');

include_once WEB_ROOT . 'easyphp/EasyPHP.class.php';

//設(shè)定檔.

#$configFile = WEB_ROOT . 'config. php';


//個(gè)人首頁

$URIstr = $_SERVER['REQUEST_URI'];

$URIstr = trim( $URIstr, '/');

if(strpos($URIstr, '/') === false && strpos($URIstr, '?') === false && !empty($URIstr) )

{

header("Location: /member/space/website-".$URIstr.'.shtml');

##}


#EasyPHP::doItEasy($configFile);



localhost 存取一直提示/member/space /website-".$URIstr.'.shtmlURL路徑不存在或頁面一片空白。。

羅秋菊
羅秋菊

全部回覆(1)
豬哥
if(strpos($URIstr,?'/')?===?false?&&?strpos($URIstr,?'?')?===?false?&&?!empty($URIstr))
{
header("Location:?/member/space/website-".$URIstr.'.shtml');
}

你這裡寫的不是很肥明顯嗎? ?

還有一個(gè)可能 是你配置過偽靜態(tài)路徑被重新定義了

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板