找回密码
 注册
广告投放 虚位以待【阿里云】2核2G云新老同享 99元/年,续费同价做网站就用糖果主机-sugarhosts.comJtti.com-新加坡服务器,美国服务器,香港服务器
楼主: iewnil

高手支招。请问如何关闭“自动定义全局变量”?

[复制链接]
 楼主| 发表于 2007 年 9 月 10 日 15:02:50 | 显示全部楼层
我一加htaccess 就出现500错误。晕啊,浪费两位大大口沫了
看来只能写信。再次感谢,金光还是好人多呐
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2007 年 9 月 10 日 15:06:13 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
O_O
偶素坏淫





Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2007 年 9 月 10 日 15:07:22 | 显示全部楼层
另外
如果自己懂 PHP
就可以在代码中模拟 register_globals 为 off
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2007 年 9 月 10 日 15:07:47 | 显示全部楼层
坏淫中的好人
          .
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2007 年 9 月 10 日 17:41:55 | 显示全部楼层
路银,路银。。。。。
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2007 年 9 月 10 日 19:01:22 | 显示全部楼层
我照老外的意思加了php.ini,可是一点反应都没,是不是我译错啊。。。。。
麻烦哥们帮我看看啦 TKS


You can disable the PHP register_globals setting by creating custom php.ini files in your web space.
They need to be in every directory where you have scripts that need the custom settings.
The php.ini files should contain the following lines:

register_globals = off
post_max_size = 20M
memory_limit = 80M
upload_max_filesize = 20M
max_execution_time = 120
expose_php=off

The first line turns off the "register_globals" setting, and the rest of the lines are needed for compatibility reasons.

Note that php.ini files do not work recursively, therefore you need to add the file in each directory where you want the PHP behavior changed. You can create such files using the online Control Panel --> File Manager interface.

Let us know if you need any additional assistance or information.
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2025 年 2 月 5 日 12:49 , Processed in 0.024086 second(s), 13 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表