[英]website showing index.php file data
當我在瀏覽器中訪問我的網站域時,它顯示index.php的代碼。我將該站點從舊服務器移到了新服務器。然后,在主機文件中設置了新服務器IP地址。之后,我對其進行了訪問。但是,它顯示了編碼。我該怎么辦?請幫助我。
這是我的.htaccess文件
php_value error_reporting 039
php_flag display_errors On
DirectoryIndex _index.php index.php
這是輸出
<?php
define("NO_IFRAME_DEFINE", "defined");
// ini_set("display_errors", "1");
// error_reporting(E_ERROR);
require_once("init.php");
$mb_flg = 0;
$mb_url = $ROOT_URL."/i/";
if(isset($_SERVER['HTTP_USER_AGENT'])){
$user_agent = $_SERVER['HTTP_USER_AGENT'];
if(eregi("DoCoMo",$user_agent)){$mb_flg = 1;}
if(eregi("UP\.Browser",$user_agent)){$mb_flg = 1;}
if(eregi("J-PHONE",$user_agent)){$mb_flg = 1;}
if(eregi("Vodafone",$user_agent)){$mb_flg = 1;}
if(eregi("SoftBank",$user_agent)){$mb_flg = 1;}
if(eregi("J-EMULATOR",$user_agent)){$mb_flg = 1;}
if($mb_flg == 1){
header( "HTTP/1.1 301 Moved Permanently" );
header("Location: $mb_url");
}
}
........
?>
從現在的情況來看,我只能假設Apache無法正常工作。 或該PHP設置不正確。 檢查您的Apache和PHP配置,然后嘗試重新啟動Apache,如果仍然沒有幫助,請嘗試重新安裝PHP。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.