Home  >  Article  >  Backend Development  >  Tutorial on set_magic_quotes_runtime_PHP

Tutorial on set_magic_quotes_runtime_PHP

WBOY
WBOYOriginal
2016-07-13 10:51:31859browse




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]


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632564.htmlTechArticleAbout set_magic_quotes_runtime Why do I set_magic_quotes_runtime() parameters whether it is 0 or 1, or do not write this line of code, $_POST The data in has been addslashes. Let me answer D888...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn