PHP4到PHP5 [英] PHP4 to PHP5

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

问题描述

我正在使用运行PHP4的服务器。


我想升级它,所以我可以使用我已经使用的PHP5代码。


我现有的PHP代码库有什么问题?


我看到:


本地大师


magic_quotes_gpc On On

magic_quotes_runtime关闭


我不知道是什么这意味着。我认为这意味着$ _REQUEST上的任何
的内容都会被反击,我在想,PDO可能不会很好地玩b $ b。如果我把它关掉,我可以在

现有代码中看到什么样的故障?这只是单引号中的一个问题吗?

在数据中反击了吗?或者我可以让运行时崩溃吗?


杰夫

I''m working on a server that is running PHP4.

I''d like to upgrade this so I can use the PHP5 code I have already.

What kind, if any, problems will I have with the existing PHP code base?

I see:

Local Master

magic_quotes_gpc On On
magic_quotes_runtime Off Off

I''m not sure what that means. I think that means that anything coming in
on $_REQUEST is backslashed and I''m thinking that probably won''t play
well with PDO. If I turn that off what kind of failure could I see in
the existing code? Is that only a problem in that single quotes will be
backslashed in the data? Or can I have runtime crashes?

Jeff

推荐答案

_REQUEST被反击并且我在想这可能不会与PDO玩得很好。如果我把它关掉,我可以在

现有代码中看到什么样的故障?这只是单引号中的一个问题吗?

在数据中反击了吗?或者我可以运行时崩溃吗?


Jeff
_REQUEST is backslashed and I''m thinking that probably won''t play
well with PDO. If I turn that off what kind of failure could I see in
the existing code? Is that only a problem in that single quotes will be
backslashed in the data? Or can I have runtime crashes?

Jeff


我正在运行运行PHP4的服务器。
I''m working on a server that is running PHP4.

>

我想升级这个,所以我可以使用我已经拥有的PHP5代码。


我现有的PHP代码有什么问题(如果有的话)

base?

我明白了:

本地大师


magic_quotes_gpc On On

magic_quotes_runtime关闭


我不是确定这意味着什么。我认为这意味着任何来自

in
>
I''d like to upgrade this so I can use the PHP5 code I have already.

What kind, if any, problems will I have with the existing PHP code
base?
I see:

Local Master

magic_quotes_gpc On On
magic_quotes_runtime Off Off

I''m not sure what that means. I think that means that anything coming
in on


_REQUEST的东西都会被反击,我在想这可能不会是
与PDO配合得很好。如果我把它关掉,我可以在现有代码中看到什么样的失败?这只是一个问题,单个

报价会在数据中被反映吗?或者我可以运行时崩溃吗?


Jeff
_REQUEST is backslashed and I''m thinking that probably won''t
play well with PDO. If I turn that off what kind of failure could I
see in the existing code? Is that only a problem in that single
quotes will be backslashed in the data? Or can I have runtime crashes?

Jeff



我们可能没有相似的代码,但我做了切换并且没有任何问题的零b / b
问题。我遇到的唯一问题是我在5.2.5中发现

filter_var然后发现我的ISP仅在5.2.2,这是
不支持它。所以至少从我的观点来看,我会说只需要确保你在服务器提供的同一水平上。我刚刚在服务器上创建了

开关并运行了一个phpinfo()以获得完整的转速,然后在我自己的系统上运行一个

并将两者进行比较。过去5.2.2有一些

非常有用的补充,但我不是全心全意地了解它们。


HTH

Twayne

We probably don''t have similar code, but I made the switch and had zero
problems of any kind. The only problem I ran into was I discovered
filter_var in 5.2.5 and then discovered my ISP is only at 5.2.2, which
doesn''t support it. So at least from my viewpoint, I''d say just make
sure you''re at the same level your server provides. I just made the
switch on the server and ran a phpinfo() to get the full rev, then ran
one on my own system and compared the two. Past 5.2.2 there were some
pretty useful additions but I don''t know them all by heart.

HTH

Twayne


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

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