mysql_connect() 在 PHP 5.6.5 中是否可用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28202250/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is mysql_connect() usable in PHP 5.6.5
提问by Reddi
Which is the latest version PHP version, who support mysql_connect()?
哪个是最新版本的PHP版本,谁支持mysql_connect()?
I've want to upgrade my PHP version. I've read, that mysql_connect() are deprecated. In all Projects I've use the old mysql_connect(). Can I update to PHP 5.6.5 or is the command in this version removed already?
我想升级我的 PHP 版本。我读过,mysql_connect() 已被弃用。在所有项目中,我都使用了旧的 mysql_connect()。我可以更新到 PHP 5.6.5 还是此版本中的命令已删除?
Uses somebody PHP 5.6.5 with mysql_connect()?
将某人的 PHP 5.6.5 与 mysql_connect() 一起使用?
Problem is, that I can't change sooo much Projects in this short time and could only update to the highest version, which support mysql_connect().
问题是,我在这么短的时间内无法更改太多项目,只能更新到支持 mysql_connect() 的最高版本。
Best regards and many thanks!
最好的问候,非常感谢!
回答by krzysiej
http://php.net/manual/en/function.mysql-connect.php
http://php.net/manual/en/function.mysql-connect.php
5.5.0 This function will generate an E_DEPRECATED error.
5.5.0 这个函数会产生一个 E_DEPRECATED 错误。
don't try to use any mysql_*functions as they are deprecated and dangerous. See mysqli_functions instead.
不要尝试使用任何mysql_*函数,因为它们已被弃用且危险。请参阅mysqli_函数。