爱就爱了

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 10048|回复: 0

PHP探秘(一)--魔术引用(4):set_magic_quotes_runtime弃用

[复制链接]
发表于 2014-1-10 14:42:11 | 显示全部楼层 |阅读模式

set_magic_quotes_runtime — Sets the current active configuration setting of magic_quotes_runtime
Report a bug
reject note 说明
bool set_magic_quotes_runtime ( bool $new_setting )

Set the current active configuration setting of magic_quotes_runtime.
Warning

自 PHP 5.3.0 起,已经废弃此函数。强烈建议不要应用此函数 。


You should NEVER rely on magic quotes or addslashes for security in an SQL context. You should ALWAYS use proper escape functions, such as mysql_real_escape_string. Failure to do so may result in an SQL injection vulnerability.


Since this function is depracted as of PHP 5.3, use ini_set('magic_quotes_runtime', 0); instead.

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

本版积分规则

小黑屋|手机版|Archiver|平龙认个人分站 - 爱就爱了 ( 豫ICP备14029057号-2、4、5 )
豫公网安备 41010502002156号

GMT+8, 2024-11-21 19:48 , Processed in 0.049572 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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