PHP探秘(一)--魔术引用(4):set_magic_quotes_runtime弃用
set_magic_quotes_runtime — Sets the current active configuration setting of magic_quotes_runtimeReport 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.
页:
[1]