利用 .htaccess 打开 / 关闭 register_globals 及 magic_quotes_gpc
文章目录
register_globals 同 magic_quotes_gpc 因为其安全问题已经臭名远播。
所以一般主机提供商,禁用了 register_globals 同 magic_quotes_gpc 并默认设置为 "OFF",可以到php.ini设置。【不建议】
其实使用 .htaccess 就可以开启。
在 .htaccess 加入两句就可以开启 register_globals 同 magic_quotes:
php_flag register_globals on
php_flag magic_quotes_gpc on
在 .htaccess 加入两句就可以关闭 register_globals 同 magic_quotes:
php_flag register_globals off
php_flag magic_quotes_pc off
原文:http://www.francissoung.com/biancheng/228.html
参考:http://www.ismarthost.com/bill/knowledgebase.php?action=displayarticle&id=316
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论