2013-03-28 43 views
-1
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\xampp\htdocs\system\reporting\download.php on line 136 

136线是$filename=strtoupper($_SESSION["SystemNameStr"])'_LOGINHISTORY_'.date('Ymd').'.CSV';意外T_CONSTANT_ENCAPSED_STRING

if ($numlog>=1) 
    { 
    $filename=strtoupper($_SESSION["SystemNameStr"])'_LOGINHISTORY_'.date('Ymd').'.CSV'; 
    header("Pragma: public"); // Added to allow IE to download through SSL tunnels. 
    header("Cache-Control: private"); 
    header("Content-Type: text/csv"); 
    header("Content-Disposition: attachment; filename=$filename "); 
+0

用strtoupper的结束()调用其次是 '_LONGHISTORY_' 没有按”你看起来不错 – GordonM

回答

2

尝试用 “”在strtoupper功能之后。

$filename=strtoupper($_SESSION["SystemNameStr"]).'LOGINHISTORY'.date('Ymd').'.CSV'; 
+0

谢谢马歇尔。有用。 –

0

$filename=strtoupper($_SESSION["SystemNameStr"])'_LOGINHISTORY_'.date('Ymd').'.CSV';

,你以为你是你是不是串联...使用:

相关问题