PHP 4 和 PHP 5 之间的区别?

发布于 2024-07-12 02:38:18 字数 1437 浏览 13 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

二智少女 2024-07-19 02:38:18

PHP 版本 5 我认为 PHP 成为一种真正的语言,原因有很多,但最重要的是因为它可以编写受人尊敬的面向对象代码。

但不要低估 MySQL 4 和 5 之间的差异 - 我认为它甚至更深、更重要。 MySQl 5 使 MySQL 成为真正的关系数据库平台,原因有很多,但最重要的是因为它可以编写完全表达的 SQL 语句(从完整的子查询支持开始)。

我希望早期版本的这两个限制对您来说是一个亮点。 没有合理的理由接受低于版本 5 的任何一个。

PHP version 5 I look at as when PHP became a real language, for a whole bunch of reasons, but most importantly because it became possible to write respectable Object Oriented code.

But don't deemphasize the difference between MySQL 4 and 5 - I think it's even deeper and more significant. MySQl 5 was when MySQL became a real relational database platform, for a whole bunch of reasons, but most importantly because it became possible to write fully expressive SQL statements (starting with full subquery support).

Just those two limitations on the earlier versions are, I hope, showstoppers for you. There's no reasonable excuse for accepting less than version 5 of either.

绝情姑娘 2024-07-19 02:38:18

Here is a basic overview of the release history. PHP 5 was a big change.

I won't go into huge detail on the differences though since PHP 4 is deprecated. Stick with PHP 5 & MySQL 5. I'd be surprised if a webhost didn't offer PHP 5 as well as 4. 4 should only be used with legacy code and should never be used for new development.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文