PHP / Codeigniter - magic_quotes_gpc错误 [英] PHP / Codeigniter - magic_quotes_gpc error

查看:226
本文介绍了PHP / Codeigniter - magic_quotes_gpc错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将我的服务器升级到PHP 5.3.19。



我使用CodeIgniter几个我的项目...现在每次我加载CI项目遇到以下错误

 指令'magic_quotes_gpc'在PHP 5.3和更高版本中已弃用



我想知道是否有人可以帮我纠正这个错误。



/ p>

解决方案

您的中有一个 magic_quotes_gpc php.ini 文件。



PHP手册状态...


magic_quotes_gpc | 1| PHP_INI_PERDIR | PHP_INI_ALL in PHP <= 4.2.3。
在PHP 5.4.0中删除。



I have just had my server upgraded to PHP 5.3.19.

I am using CodeIgniter for a few of my projects ... now every time i load a CI project im getting the following error

Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater

Im wondering if anyone can help me out rectifying this error.

Cheers

解决方案

You have a magic_quotes_gpc directive in your php.ini file. It needs to be removed.

The PHP manual states...

magic_quotes_gpc | "1" | PHP_INI_PERDIR | PHP_INI_ALL in PHP <= 4.2.3. Removed in PHP 5.4.0.

这篇关于PHP / Codeigniter - magic_quotes_gpc错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆