In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to turn off automatic escape by php". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to turn off automatic escape by php.
Php turn off automatic escape methods: 1, find and open the php.ini file; 2, set "magic_quotes_gpc" and "magic_quotes_runtime" to "Off".
This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer
How does php turn off automatic escape?
Php automatic escape
There are two pre-selected controls for automatic escape in php.ini
Magic_quotes_gpc: automatically escapes GET/POST/COOKIES
Magic_quotes_runtime: automatically escapes SQL
I found the above problem when using json_decode today. I should add a slash "\" to all the double quotes in the json.
By default, these two options are "On", set "Off" to turn it off, and if you don't want to modify the configuration, you can use stripcslashes to reverse escape the automatically escaped string.
At this point, I believe you have a deeper understanding of "php how to turn off automatic escape". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.