Home > php教程 > php手册 > php Deprecated: Function set_magic_quotes_runtime() is depre

php Deprecated: Function set_magic_quotes_runtime() is depre

WBOY
Release: 2016-06-13 09:55:55
Original
1094 people have browsed it

今天在做一程序时提示Deprecated: Function set_magic_quotes_runtime() is deprecated,后来网上搜索了一下才知道,原因是PHP 5.3以后的版本都不支持这个函数了。

解决办法

函数 set_magic_quotes_runtime() 在php5.3以后的版本可用

 代码如下 复制代码
ini_set(“magic_quotes_runtime”, 0)

来替换了,方法简单吧。

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template