-1
我在Windows vps上有這個錯誤信息。解析錯誤:語法錯誤,意外的T_DNUMBER在C: Inetpub vhosts
完整的錯誤消息:
「解析錯誤:語法錯誤,在C意想不到T_DNUMBER:\的Inetpub \虛擬主機\ kayahomesonline.com \的httpdocs \的configuration.php第24行,」
我的configuration.php內容爲:
error_reporting(E_ALL);
ini_set("display_errors", 1);
session_start();
## Set the time for IST
date_default_timezone_set('Europe/Istanbul');
setlocale(LC_ALL, 'turkish');
setlocale(LC_ALL, 'tr_TR.UTF-8');
// setlocale(LC_TIME, 'tr_TR');
$title = "KAYAHOMES YÖNETİM PANELİ";
$baseURL = "https://www.kayahomesonline.com";
$basePath = "C:\Inetpub\vhosts\kayahomesonline.com\httpdocs\";
## JavaScript General Path
$js_path = 'http://script.rezsis.com/js/';
$img_path = 'http://script.rezsis.com/images/';
$version = "0.1";
$baglan = mysql_connect('localhost','datauser','D4t4b4s3*');
if (!$baglan)
{
die('Veritabanına bağlanılamadı... Lütfen yetkilinizle irtibata geçin...' . mysql_error());
}
mysql_select_db('kayahomes_new',$baglan) or header("Location: ../login.php");
mysql_query("SET NAMES UTF8");
?>
有什麼不對?這個配置文件正在使用我的舊版Linux VPS。
最後''\''在'$ basePath'字符串轉義'「',因此字符串還沒有結束(因爲所有的紅在熒光筆中顯示顏色),你需要一個''\\';''。 – deceze 2014-11-02 15:24:05