php 4和php 5之间的区别?

时间:2022-06-17 13:28:46

I'm in search of the web hosting space, and got to know the PHP version is 4.3 and MySQL Version 4.1

我正在寻找网络托管空间,并且知道PHP版本是4.3和MySQL版本4.1

But i developed my application in MySQL version 5.x and PHP version 5.x

但我在MySQL 5.x版和PHP版5.x版中开发了我的应用程序

Can anyone give me the differences in versions ?

任何人都可以给我版本的差异吗?

what all i cannot access now ?

我现在无法访问的是什么?

Thanks...

3 个解决方案

#1


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.

PHP版本5我看来当PHP成为一种真正的语言时,出于一系列原因,但最重要的是因为它可以编写可敬的面向对象的代码。

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).

但是不要强调MySQL 4和5之间的区别 - 我认为它更深刻,更重要。 MySQl 5是当MySQL成为一个真正的关系数据库平台时,出于一系列原因,但最重要的是因为它可以编写完全富有表现力的SQL语句(从完整的子查询支持开始)。

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.

我希望,早期版本的这两个限制是适合你的。接受低于第5版的任何一个都没有合理的借口。

#2


Why not take a look at the PHP docs:

为什么不看看PHP文档:

http://www.php.net/manual/en/migration5.php

http://www.php.net/manual/en/faq.migration5.php

http://www.php.net/manual/en/migration5.incompatible.php

With regards to MySQL you can track changes in versions here:

关于MySQL,您可以在此处跟踪版本的变化:

http://dev.mysql.com/doc/mysqld-version-reference/en/key-changes.html

Major new features added to MySQL 5.0 and 5.1 that may not work/won't work in 4.x can be located here:

MySQL 5.0和5.1中添加的主要新功能可能无效/无法在4.x中运行,可以在此处找到:

MySQL 5.0 - http://dev.mysql.com/doc/refman/5.0/en/mysql-nutshell.html

MySQL 5.0 - http://dev.mysql.com/doc/refman/5.0/en/mysql-nutshell.html

MySQL 5.1 - http://dev.mysql.com/doc/refman/5.1/en/mysql-nutshell.html

MySQL 5.1 - http://dev.mysql.com/doc/refman/5.1/en/mysql-nutshell.html

#3


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

以下是发布历史的基本概述。 PHP 5是一个很大的变化。

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.

我不会详细介绍这些差异,因为PHP 4已被弃用。坚持使用PHP 5和MySQL 5.如果webhost不提供PHP 5以及4,我会感到惊讶.4只应该与遗留代码一起使用,不应该用于新开发。

#1


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.

PHP版本5我看来当PHP成为一种真正的语言时,出于一系列原因,但最重要的是因为它可以编写可敬的面向对象的代码。

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).

但是不要强调MySQL 4和5之间的区别 - 我认为它更深刻,更重要。 MySQl 5是当MySQL成为一个真正的关系数据库平台时,出于一系列原因,但最重要的是因为它可以编写完全富有表现力的SQL语句(从完整的子查询支持开始)。

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.

我希望,早期版本的这两个限制是适合你的。接受低于第5版的任何一个都没有合理的借口。

#2


Why not take a look at the PHP docs:

为什么不看看PHP文档:

http://www.php.net/manual/en/migration5.php

http://www.php.net/manual/en/faq.migration5.php

http://www.php.net/manual/en/migration5.incompatible.php

With regards to MySQL you can track changes in versions here:

关于MySQL,您可以在此处跟踪版本的变化:

http://dev.mysql.com/doc/mysqld-version-reference/en/key-changes.html

Major new features added to MySQL 5.0 and 5.1 that may not work/won't work in 4.x can be located here:

MySQL 5.0和5.1中添加的主要新功能可能无效/无法在4.x中运行,可以在此处找到:

MySQL 5.0 - http://dev.mysql.com/doc/refman/5.0/en/mysql-nutshell.html

MySQL 5.0 - http://dev.mysql.com/doc/refman/5.0/en/mysql-nutshell.html

MySQL 5.1 - http://dev.mysql.com/doc/refman/5.1/en/mysql-nutshell.html

MySQL 5.1 - http://dev.mysql.com/doc/refman/5.1/en/mysql-nutshell.html

#3


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

以下是发布历史的基本概述。 PHP 5是一个很大的变化。

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.

我不会详细介绍这些差异,因为PHP 4已被弃用。坚持使用PHP 5和MySQL 5.如果webhost不提供PHP 5以及4,我会感到惊讶.4只应该与遗留代码一起使用,不应该用于新开发。