今天装LifeType出错:PHP.ini的设置问题

要更改php.ini中的一些缺省值:
1.memory_limit为8M,要设大些
2.上传文件最大为2M,也要设大些



你必須要先察看你的 Apache 有沒有紀錄任何錯誤訊息,如果你發現 Apache 給你的錯誤訊息是:

PHP Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object you are trying to operate on was loaded _before_ the session was started in /usr/home/www/plog/class/action/blogaction.class.php on line 54

PHP Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object you are trying to operate on was loaded _before_ the session was started in/usr/home/www/plog/class/action/blogaction.class.php on line 177

那很有可能你的 PHP 的 session 設定錯誤。解決的方式是把 php.ini 中 的 session.auto_start 參數設為 0。

session.auto_start = 0





你可能感兴趣的:(php.ini)