When I was working on a program today, it prompted Deprecated: Function set_magic_quotes_runtime() is deprecated. After searching online, I found out that the reason is that versions after PHP 5.3 no longer support this function.
Solution
The function set_magic_quotes_runtime() is available in php5.3 and later versions
代码如下 | 复制代码 |
ini_set(“magic_quotes_runtime”, 0) |
Let’s replace it, the method is simple.