飘云飘云

漂泊的云,停留的心!人的头脑太复杂,时间过得久,有时候连自己也被自己骗了,记下来才是最真实的……

PHP5.4下帝国备份王提示错误PHP Deprecated: mysql_escape_string()的解决办法

我的本地测试环境是php5.4+mysql5.60,用帝国备份王备份数据库,结果出错,提示下面的错误代码:

PHP Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in E:\wwwroot\piaoyun.cc\ebak\class\functions.php on line 912
PHP Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in E:\wwwroot\piaoyun.cc\ebak\class\functions.php on line 912
PHP Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in E:\wwwroot\piaoyun.cc\ebak\class\functions.php on line 912

解决办法:
搜索帝国备份王所在目录文件夹,找到fuctions.php,在912行

找到函数:
mysql_escape_string

修改为:
mysql_real_escape_string

再次备份数据库就不再提示错误了。

当前页面:飘云 » PHP5.4下帝国备份王提示错误PHP Deprecated: mysql_escape_string()的解决办法

评论