作者:cui115588 | 来源:互联网 | 2018-03-22 04:07
今天在把php升级之后运行一个页面出现了Deprecated:Functionset_magic_quotes_runtime()isdeprecatedinF:wwwrootm...
今天在把php升级之后运行一个页面出现了Deprecated: Function set_magic_quotes_runtime() is deprecated in F:\wwwroot\mongodb\manage\app.php on line 13错误,后来百度了才知道原因高版本的php把set_magic_quotes_runtime去了,官方提供的解决办法:
//把
set_magic_quotes_runtime(0);
//替代成
ini_set("magic_quotes_runtime",0);
即可解析了。