Monday 15 August 2011

php - Parse error: syntax error, unexpected T_DNUMBER in C:\Inetpub\vhosts\ -



php - Parse error: syntax error, unexpected T_DNUMBER in C:\Inetpub\vhosts\ -

i have error message on windows vps.

complete error message:

"parse error: syntax error, unexpected t_dnumber in c:\inetpub\vhosts\kayahomesonline.com\httpdocs\configuration.php on line 24"

my configuration.php content is:

error_reporting(e_all); ini_set("display_errors", 1); session_start(); ## set time 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"); ?>

what wrong? config file working on old linux vps.

as @deceze pointed out string not ending here in variable $basepath. need add together backslash create string end.

so code like

$basepath = "c:\inetpub\vhosts\kayahomesonline.com\httpdocs\\";

php php-parse-error

No comments:

Post a Comment