Gallery PHP problem.

本文解决在使用Gallery时遇到的PHP4.2.3版本中Session警告的问题,提供了修改php.ini文件或.htaccess文件的方法来消除警告。
From: http://www.zettai.net/Forums/06/1067798714

Q:
I have installed gallery from gallery.sf.net. I get this warning when I run it... anyone know what might be the problem? Where should I set these variables? " Powered by Gallery v1.4-pl2 Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0 "


A:

see Gallery FAQ C18: C.18. Why do I get this warning: Your script possibly relies on a session side-effect which existed until PHP 4.2.3?

In PHP 4.2.3, they made a change to the way that the session code works that results in PHP generating a warning when a session is created. In order to resolve this, we have to update some code in Gallery. This warning has no effect, except that it shows upon screen. You can make it go away by editing your php.ini and setting

session.bug_compat_warn to off

and restart Apache.

If you don't have access to php.ini, add this line to your .htaccess

php_flag session.bug_compat_warn off

This should be fixed in future versions of Gallery.

regards

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值