我很難在這一個工作。共享服務器使用PHP 5.4並返回並出錯。致命錯誤語法錯誤,意外'['
我使用它返回一個測試:
致命錯誤語法錯誤,意想不到的 '[' 上3號線
<?php
// This is the database connection configuration.
return [
'connectionString' => 'mysql:host=localhost;dbname=languag2_lp',
'emulatePrepare' => true,
'username' => 'languag2_lp',
'password' => 'languag2_lp',
'charset' => 'utf8',
'tablePrefix' => 'tbl_',
];
任何想法,請..謝謝!
您是否通過phpinfo()或phpversion()驗證了PHP版本? – jpossi
顯然它不運行PHP5.4 - 你有沒有嘗試調用'phpinfo()'? – localheinz
嘗試刪除最後一個逗號? –