0
我試圖移動到php5,我遇到了很多問題。這個類提供了錯誤:從php4移動到php5
Class DatabaseConnection
{ // error here
private $connection;
private $result;
//
public function __construct()
{
$this->databaseName = $GLOBALS['configuration']['db'];
}
// other methods follow
}
我在.htaccess中還有:
AddType x-mapp-php5 .php
php_value register_globals on
這是錯誤我得到:
php5 error syntax error, unexpected T_STRING
什麼錯誤信息? – 2010-04-04 02:12:55
該代碼片段通過我的驗證器錯誤免費。問題必須出現在您發佈的其他部分。 – deceze 2010-04-04 02:16:09
這段代碼中沒有任何內容會導致錯誤 – 2010-04-04 02:26:41