About set_magic_quotes_runtime
Why does the data in $_POST get addslashed no matter whether the parameter of my set_magic_quotes_runtime() is 0 or 1, or I don’t write this line of code?
Let me answer
D8888D reply content------------------------------------------------- ----------
ini_set('magic_quotes_gpc','on'[,'off'])
D8888D reply content------------------------------------------------- ----------
ini_set('magic_quotes_gpc','on'[,'off'])
Can this code set the 'magic_quotes_gpc switch? It seems that it can't be set
D8888D reply content------------------------------------------------- ----------
ini_set is a function that comes with PHP to set the php.ini configuration file.
Syntax: ini_set("option","value")
It is best to put this function at the top of the php script
D8888D reply content------------------------------------------------- ----------
The original post was published by myac on 2009-1-23 20:37 [url=http://bbs.111cn.cn/redirect.php?goto=findpost&pid=841919&ptid=102676]Link tag [img]http://bbs. 111cn.cn/images/common/back.gif[/img][/url]
ini_set is a function that comes with PHP to set the php.ini configuration file.
Syntax: ini_set("option","value")
It is best to put this function at the top of the php script
Didn’t it say that it can only be used in cgi mode
D8888D reply content------------------------------------------------- ----------
version?
D8888D reply content------------------------------------------------- ----------
Let me take a look at two concepts
1. magic_quotes_gpc affects Get/Post/Cookie
2. magic_quotes_runtime affects the whole world (including SQL string escape)
[url=http://bbs.111cn.cn/viewthread.php?tid=44480]Link tag http://bbs.111cn.cn/viewthread.php?tid=44480[/url]