开发者

Moving from php4 to php5

I tried moving to php5, I am getting into lot of issues. This class gives error :

 Class DatabaseConnection 
 {                              // error here
     private $connection;
     private $result;   
     // 
     public function __construct()
     {
         $this->databaseName = $GLOBALS['configuration']['db'];
     }
     // other methods follow
 }

I have the following in the .htaccess file as well:

AddType x-mapp-php5 .php
php_value register_globals on
开发者_运维知识库

This is the error I get :

php5 error syntax error, unexpected T_STRING


Double check that PHP5 is working.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜