php Deprecated: Function set_magic_quotes_runtime() is deprecated错误
今天在做一程序时提示Deprecated: Function set_magic_quotes_runtime() is deprecated,后来网上搜索了一下才知道,原因是PHP 5.3以后的版本都不支持这个函数了。解决办法
函数 set_magic_quotes_runtime() 在php5.3以后的版本可用
代码如下 | 复制代码 |
ini_set(“magic_quotes_runtime”, 0) |
来替换了,方法简单吧。
PHP之友评论