php報錯,籌建egroupware,unexpected T_ARRAY, expecting '&' or T_VARIABLE

來源:互聯網
上載者:User
php報錯,搭建egroupware,unexpected T_ARRAY, expecting '&' or T_VARIABLE
在windows-xp搭建egroupware環境
用了apache+mysql+php
版本號碼如下:
apache:2.0.50
mysql:4.0.20d
php:5.0.0
egroupware:1.8.004.20130831

在瀏覽器裡面輸入網址:http://127.0.0.1/egroupware
報以下錯誤:

Warning: set_error_handler() expects parameter 2 to be long, string given in C:\Apache Group\www\egroupware\phpgwapi\inc\common_functions.inc.php on line 1640

Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in C:\Apache Group\www\egroupware\setup\inc\class.setup.inc.php on line 986


按理來說egroupware這類開源的代碼不會報錯,是不是版本之類的不相容,或者需要設定什麼設定檔?

求助呀求助呀。。。 php apache egroupware mysql windows

分享到:


------解決方案--------------------
你看官方,需要什麼版本。應該是php版本不同引起的。
------解決方案--------------------
參數的型別宣告是 php5.3 以後才逐步加入的
------解決方案--------------------
對,參數的型別宣告是 php5.3 以後才逐步加入的
------解決方案--------------------
mysql_connect(): Connecting to 3.22, 3.23 & 4.0 is not supported. Server is 4.0.20a-nt in C:\\Apache Group\\www\\test.php on line 2

顯然你的 mysql 是古老的!
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.