织梦/dedecms提示php.ini register_globals must is Off!的解决方法
2010-08-10 16:42
711 查看
解决php.ini register_globals must is Off!方案:
1、如果是独立服务器的用户可以修改php配置文件中的php.ini,将register_globals=On改为register_globals=Off,如果不行也把session.auto_start=1改成session.auto_start=0,然后重启Apache或IIS.
2、如果是虚拟主机的用户,尽可能的通知空间商让其对配置进行修改,或者可以尝试ini_set('session.auto_start',0)来.
3、自己在网站目录下新建一个.htaccess文件,加上php_flag register_globals off 就行了,如果已有.htaccess文件,直接再最后另起一行添加即可;
4、如果实在不行,那只有采用最后的办法直接去include/common.inc.php中将以下代码删除即可。如果删除后还是不行,请恢复升级前文件common.inc.php或include、plus两个文件夹。
http://www.szzhtl.com
1、如果是独立服务器的用户可以修改php配置文件中的php.ini,将register_globals=On改为register_globals=Off,如果不行也把session.auto_start=1改成session.auto_start=0,然后重启Apache或IIS.
2、如果是虚拟主机的用户,尽可能的通知空间商让其对配置进行修改,或者可以尝试ini_set('session.auto_start',0)来.
3、自己在网站目录下新建一个.htaccess文件,加上php_flag register_globals off 就行了,如果已有.htaccess文件,直接再最后另起一行添加即可;
4、如果实在不行,那只有采用最后的办法直接去include/common.inc.php中将以下代码删除即可。如果删除后还是不行,请恢复升级前文件common.inc.php或include、plus两个文件夹。
---- //禁止 session.auto_start if ( ini_get('session.auto_start') != 0 ) { exit('php.ini session.auto_start must is 0 ! '); } ---- |
相关文章推荐
- dedecms v5.7提示php.ini register_globals must is Off错误的解决方法
- dedecms v5.7提示php.ini register_globals must is Off错误的解决方法
- 提示 php.ini register_globals must is Off! 的解决办法
- 解决dedecms的php.ini register_globals must is Off!
- 如何解决php.ini register_globals must is Off!
- dede 后台登录出现php.ini register_globals must is Off!怎么办
- 织梦dede显示php.ini register_globals must is Off
- 深入了解 register_globals (附register_globals=off 网站打不开的解决方法)
- php.ini 中register_globals的ON和Off配置
- PHP提示Deprecated: mysql_connect(): The mysql extension is deprecated的解决方法
- 深入了解 register_globals (附register_globals=off 网站打不开的解决方法)
- 使用phpExcelReader操作excel提示The filename *.xls is not readable的详细解决方法
- PHP安装ionCube插件报错The Loader must appear as the first entry in the php.ini file in Unknown的解决方法
- PHP提示Deprecated: mysql_connect(): The mysql extension is deprecated的解决方法
- PHP提示Deprecated: mysql_connect(): The mysql extension is deprecated的解决方法
- PHP提示Deprecated: mysql_connect(): The mysql extension is deprecated的解决方法
- PHP Warning: strtotime() [function.strtotime]: It is not safe to rely on the system’s timezone settings. 解决方法:
- phalcon安装-遇坑php-config is not installed 解决方法
- 在XAMPP v3.2.1中,启动apache时,弹出“directive 'register_globals' is no longer availble in PHP”警告。
- 远程连接mysql时,提示“is not allowed to connect to this MySQL server”的解决方法