网站移动,现在PHP代码似乎不起作用 [英] Site moved and now php code does not appear to work

查看:50
本文介绍了网站移动,现在PHP代码似乎不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我改变了网站主机。在我的旧主机上运行的代码不会在新主机上运行
。似乎php代码没有运行或

正确运行。没有任何与php有关的内容。甚至没有

php代码。为什么它会在一个主机而不是另一个主机上工作?


Apache 2.2.8


的地方来验证php代码?


-

I changed website hosts. The code that worked on my old host does not
work on the new host. It appears that the php code is not running or
running correctly. Nothing related to php is displaying. Not even the
php code. Why would it work on one host and not the other?

Apache 2.2.8

Any ideas? The new host is not too excited about helping. Are there any
places to validate php code?

--

推荐答案

4月18日9:01 * pm,dan <写道:
On Apr 18, 9:01*pm, "dan" <wrote:

我更改了网站主机。在我的旧主机上运行的代码不会在新主机上运行
。似乎php代码没有运行或

正确运行。没有任何与php有关的内容。甚至没有

php代码。为什么它会在一个主机而不是另一个主机上工作?


Apache 2.2.8


的地方来验证php代码?


-
I changed website hosts. The code that worked on my old host does not
work on the new host. It appears that the php code is not running or
running correctly. Nothing related to php is displaying. Not even the
php code. Why would it work on one host and not the other?

Apache 2.2.8

Any ideas? The new host is not too excited about helping. Are there any
places to validate php code?

--



你检查过吗?错误日志?另外,你移动平台了吗?例如
Windows到Linux?另一种可能性是,不需要

的扩展名。

Have you checked the error logs? Also, are you moving platforms? e.g
Windows to Linux? Another possiblity maybe that an extension that is
required is not present.


2008年4月19日星期六00:01:16 +0200, dan写道:
On Sat, 19 Apr 2008 00:01:16 +0200, dan wrote:

David Pyles写道:
David Pyles wrote:

> On 4/18/2008 5:09 PM,dan写道:
>On 4/18/2008 5:09 PM, dan wrote:

David Pyles写道:

2008年4月18日下午4:01,dan写道:

我改变了网站主机。在我的旧主机上工作的代码

在新主机上不起作用。似乎php代码没有运行或正常运行。
没有任何与php有关的东西是显示的b $ b。甚至不是PHP代码。为什么它会在一个

主机上运行而不是另一个?


Apache 2.2.8


任何想法?新主持人对帮助并不太兴奋。

有没有地方可以验证php代码?


要做的第一件事就是看看你的新主机是否真的有

安装并打开PHP。将以下内容复制并粘贴到

文本编辑器中并将其保存为test.php并将其上传到您的服务器。

如果PHP正在运行,它将返回比以往更多的内容想知道
了解服务器上的PHP设置。如果没有,它将会显示

在浏览器中返回。

<?php

phpinfo();

?>


首先,它显示一个空白屏幕。删除本地

.htaccess文件后,它显示了一整套信息。
David Pyles wrote:
On 4/18/2008 4:01 PM, dan wrote:
I changed website hosts. The code that worked on my old host
does not work on the new host. It appears that the php code is
not running or running correctly. Nothing related to php is
displaying. Not even the php code. Why would it work on one
host and not the other?

Apache 2.2.8

Any ideas? The new host is not too excited about helping. Are
there any places to validate php code?

The first thing to do is to see whether your new host actually has
PHP installed and turned on. Copy and paste the following into a
text editor and save it as test.php and upload it to your server.
If PHP is working it will return more than you ever wanted to
know about the PHP settings on the server. If not, it will juts
return itself in your browser.
<?php
phpinfo();
?>

At first, it displayed a blank screen. After I deleted the local
.htaccess file, it displayed a whole crap-load of info.


删除后,您是否再次尝试过页面。 htaccess文件?
听起来它阻止了PHP。

Dave Pyles

Did you try your pages again after you deleted the .htaccess file?
It sounds like it was blocking PHP.

Dave Pyles



是的。这是崩溃的页面之一:
http://www.jaymartinreptiles。 com / tips.html



..html通常不会为php标签解析...现在显然是可以使用的

来源。

-

Rik Wasmus

..html is not usually parsed for php tags... Which are now clearly viaible
in the source.
--
Rik Wasmus


2008年4月18日22:01:16 GMT,dan写道:
On 18 Apr 2008 22:01:16 GMT, dan wrote:

David Pyles写道:
David Pyles wrote:

> 2008年4月18日下午5:09,dan写道:
>On 4/18/2008 5:09 PM, dan wrote:

首先,它显示一个空白屏幕。删除本地

.htaccess文件后,它显示了一整套信息。
At first, it displayed a blank screen. After I deleted the local
.htaccess file, it displayed a whole crap-load of info.


删除后,您是否再次尝试过页面。 htaccess文件?
听起来它阻止了PHP。

Dave Pyles

Did you try your pages again after you deleted the .htaccess file?
It sounds like it was blocking PHP.

Dave Pyles



是的。这是崩溃的页面之一:
http://www.jaymartinreptiles。 com / tips.html



也许网络服务器不会通过PHP处理器处理什么呢?b $ b不知道是不是php。我们怎么知道这个html页面是php?


-

97.我的地下城单元格不会配备包含反光的对象

表面或任何可以解开的东西。

- 彼得安普帕克作为邪恶霸主的事情清单

Perhaps the webserver does not process through the PHP processor what it
does not know is php. How do we know this html page is php?

--
97. My dungeon cells will not be furnished with objects that contain reflective
surfaces or anything that can be unravelled.
--Peter Anspach''s list of things to do as an Evil Overlord


这篇关于网站移动,现在PHP代码似乎不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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