#1 新一
Jake 大哥,我把PHP升级到5.5后
打开就出错啦!
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
E:\webserver\htdocs\SpeedPHP\Drivers\mysql.php on line
183貌似好像是提示要用MYSQLI或者PDO
2013-12-02 14:42:11
#2 新一
为题解决了,谢谢
5.5以后MYSQL不建议使用老的MYSQL连接方式了,推荐使用MYSQLI或PDO,
'driver' => 'mysqli', 问题解决
还有报错的情况是
5.3以上的版本后,不再支持,ereg()函数,而是使用preg_match()函数;不支持ereg_replace()函数,而使用preg_replace()函数。
notice.php
function highlight_code($code){
if (preg_match("/<\?(php)?[^[:graph:]]/", $code)) {
$code = highlight_string($code, TRUE);
} else {
$code = preg_replace("/(<\?php )+/", "", highlight_string(" }
我暂时改为这样,问题解决!
原来是
function highlight_code($code){
if (ereg("<\?(php)?[^[:graph:]]", $code)) {
$code = highlight_string($code, TRUE);
} else {
$code = ereg_replace("(<\?php )+", "", highlight_string(" }
return $code;
}
2013-12-02 15:05:46