PHP升级到5 [英] PHP Upgrade to 5

查看:80
本文介绍了PHP升级到5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的技术人员说我们的linux服务器运行的是PHP 4.我认为
以为我们已经运行了5个。


他说他想要充电我们每年500英镑安装和支持它

,因为这是一项很多工作,它将在我们的现有系统上产生的问题是巨大的等等。 />

现在我在我的电脑上安装了5台运行Apache而没有任何问题

并在本地开发站点然后上传到服务器(运行4)。我的b $ b从来没有遇到兼容性问题。


有没有人有从4到5的经验而且更多

比它值得的麻烦。我们可以期待哪些主要问题?


感谢John

Our technical guy says that our linux server is running PHP 4. I
thought we were running 5 already.

He says he wants to charge us £500 a year to install and support it
because it is a lot of work, and the problems it will create on our
current systems are huge etc.

Now I installed 5 on my PC at home running Apache without any problems
and develop sites locally and then upload to the server (running 4). I
have never had a problem with compatibility issues.

Does anyone have any experience of moving from 4 to 5 and was it more
hassle than it was worth. What are the main issues we can expect?

Thanks John

推荐答案

7月23日,4: 37 * pm,John< 67vnue6o @ knwfvwrote:
On Jul 23, 4:37*pm, John <67vnue6o@knwfvwrote:

我们的技术人员说我们的linux服务器运行的是PHP 4.我认为
以为我们已经跑了5个。


他说他想每年向我们收取500英镑来安装和支持它

,因为这是很多工作,它将在我们的现有系统中产生的问题是巨大的等等。


现在我在我的电脑上安装了5台运行Apache而没有任何问题

并在本地开发站点,然后上传到服务器(运行4)。我的b $ b从来没有遇到兼容性问题。


有没有人有从4到5的经验而且更多

比它值得的麻烦。我们可以期待哪些主要问题?


感谢John
Our technical guy says that our linux server is running PHP 4. I
thought we were running 5 already.

He says he wants to charge us £500 a year to install and support it
because it is a lot of work, and the problems it will create on our
current systems are huge etc.

Now I installed 5 on my PC at home running Apache without any problems
and develop sites locally and then upload to the server (running 4). I
have never had a problem with compatibility issues.

Does anyone have any experience of moving from 4 to 5 and was it more
hassle than it was worth. What are the main issues we can expect?

Thanks John



这一切都取决于你使用它的原因。例如我通常使用PHP,MYSQL和Apache,并且通常我发现某些版本的某些版本的MYSQL存在某些版本的问题(但是

通常我总能找到某种解决方法来解决它)。对于apache的某些经验,还有

问题。有时需要花费大量的时间才能找到适合你的网页的最兼容的版本

申请。


所以你的web tecky可能有一点(取决于他为保证服务器安全而设置的安全性)。这些设置

可能无法有效地使用较新版本的PHP。

It all depends on what you are using it for. For instance I usually
use PHP, MYSQL and Apache and usually I find that there are certain
versions of PHP has problems with Certain versions of MYSQL (But
usually I always find some sort of tweak to solve it). There are also
issues with certain versins of apache. Some times it takes alot of
tweeking to find the most compatible versions that wiil suit your web
application.

So your web tecky might have a point (depending on what security
settings he has in place to make the server secure). These settings
may not work effectivly with the newer versions of PHP.


John写道:
John wrote:

我们的技术人员说我们的linux服务器运行的是PHP 4.我认为
以为我们已经运行了5个。


他说他希望每年向我们收取500英镑的费用来安装和支持它

,因为这是一项很多工作,以及它将在我们的现有系统上产生的问题很棒等等。


现在我在我的电脑上安装了5台运行Apache而没有任何问题

并在本地开发站点然后上传到服务器(运行) 4)。我的b $ b从来没有遇到兼容性问题。


有没有人有从4到5的经验而且更多

比它值得的麻烦。我们可以期待哪些主要问题?


谢谢John
Our technical guy says that our linux server is running PHP 4. I
thought we were running 5 already.

He says he wants to charge us £500 a year to install and support it
because it is a lot of work, and the problems it will create on our
current systems are huge etc.

Now I installed 5 on my PC at home running Apache without any problems
and develop sites locally and then upload to the server (running 4). I
have never had a problem with compatibility issues.

Does anyone have any experience of moving from 4 to 5 and was it more
hassle than it was worth. What are the main issues we can expect?

Thanks John



PHP4已经停产,不再受支持,所以移动比继续PHP4更好。

。您的系统管理员将最终转换为



PHP手册包含从PHP4迁移到PHP5的信息:

< URL:http://php.net/manual/en/migration5.php>。到目前为止,我没有使用我的PHP4脚本打破PHP5的任何问题。说你的系统管理员是多么正确,这真的很难

,除非你能从他那里得到一些具体的信息

。也许他安装了一些编码非常糟糕的脚本,

谁知道。


-

柯蒂斯( http://dyersweb.com


.. oO( John)
..oO(John)

>我们的技术人员说我们的linux服务器运行的是PHP 4.我认为我们已经运行了5个。
<他说他希望每年向我们收取500英镑来安装和支持它
因为这是一项很多工作,它将在我们当前系统上产生的问题是巨大的等等。 b $ b
>Our technical guy says that our linux server is running PHP 4. I
thought we were running 5 already.

He says he wants to charge us £500 a year to install and support it
because it is a lot of work, and the problems it will create on our
current systems are huge etc.



如果你不升级,PHP 4就会出现问题。


单独进行简单的升级就不行了价值500英镑,但是如果你当前的系统需要在PHP 5上运行很多修改,那么你可能需要花费一些钱来支付b $ b。但是必须要这样做。

The problems will arise with PHP 4 if you don''t upgrade.

A simple upgrade alone isn''t worth £500, but if your current system
requires a lot of modifications to run on PHP 5, then you might have to
spend some money. But it has to be done.


>现在我在我的电脑上安装了5台运行Apache而没有任何问题
并在本地开发网站然后上传到服务器(运行4)。我从来没有遇到兼容性问题。

有没有人有从4到5的经验,是否比它的价值更麻烦。
>Now I installed 5 on my PC at home running Apache without any problems
and develop sites locally and then upload to the server (running 4). I
have never had a problem with compatibility issues.

Does anyone have any experience of moving from 4 to 5 and was it more
hassle than it was worth.



升级是必须的! PHP 4已经死了,对它的支持最终将在两周后结束
- 将不再有安全修复程序!

Upgrading is a must! PHP 4 is dead, the support for it will finally end
in two weeks - there will be no more security fixes!


>我们可以期待哪些主要问题?
>What are the main issues we can expect?



为PHP 4编写的大多数脚本在PHP 5上都没有任何问题。

只有很小的不兼容性,这些不兼容性主要来自于

写得不好的代码(例如register_globals)。但是这样的事情可以被认为是错误的,应该尽快修复。


Micha

Most scripts written for PHP 4 will run without any problems on PHP 5.
There are only small incompatibilities, which will mostly arise from
poorly written code (for example register_globals). But such things can
be considered bugs and should be fixed as soon as possible.

Micha


这篇关于PHP升级到5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆