在雅虎上使用PHP [英] using PHP on Yahoo

查看:54
本文介绍了在雅虎上使用PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用PHP编写一个目前在雅虎上的网站,我已经用

Firefox和IE进行了测试。我认为雅虎正在运行某些版本的unix或

linux,我认为是Apache服务器。我的开发已经在使用XP专业版本地支付了b $ b。


这里有问题:我重写了大部分网站
PHP中的
www.beadiction.com )。但是,雅虎服务器要求将我的

第一个文件命名为index.html。如果我在这个HTML

文件中包含php代码,那么Apache(?)服务器看不到php代码。如果我将

index.html重命名为

index.php,那么网络服务器就不会显示任何内容。


所以,问题是:有没有人知道如何''挂钩''index.html(其中
使用php" includes"加载网站的内容)到Apache,以便它

一起运行?我认为我可以在.htacess文件中使用Apache

指令,但看来雅虎不会让b $ b允许我看到那个文件。此外,我已经尝试使用和html重定向

(通过HEADERs)启动index.php,希望这将足以让PHP服务器开始寻找
在代码中,但它也确实没有工作。


FWIW,我已经等了2周才从雅虎那里得到一些帮助
技术人员,他们获得了与上述相同的信息。是

描述中有些东西我可能会遗漏那将是什么?

帮助更清楚地说明问题?


谢谢你你的帮助


Lee

I am re-writing a site in PHP that is currently on Yahoo and I have
been testing with both
Firefox, and IE. I think Yahoo is running some version of unix or
linux, and I assume, the Apache server. My development has been on
local using XP pro.

Here''s the problem: I have re-written most of the website
(www.beadiction.com) in PHP. But, the Yahoo server requires that my
first file be named index.html. If I include php code in this HTML
file, then the Apache (?) server doesn''t see the php code. If I rename
index.html to
index.php, then the webserver doesn''t display anything.

So, the question is: Does anyone know how to ''hook'' index.html (which
uses php "includes" to load in the site''s content) to Apache so that it
all runs together? As thought that I''d be able to use an Apache
directive in the .htacess file, but it appears that Yahoo does not
allow me to "see" that file. Also, I have tried using and html redirect
(via HEADERs) to kick off the index.php, hoping that that would be
enough for the PHP server to start looking at the code, but it too did
not work.

FWIW, I have been waiting for 2 weeks to get some help from the Yahoo
technical staff, who were provided the same information as above. Is
there something in the description I am perhaps leaving out that would
help state the problem more clearly?

Thanks for your help

Lee

推荐答案

继Lee的消息之后。 。 。
Following on from Lee''s message. . .

FWIW,我一直在等待2周时间从雅虎技术人员那里得到一些帮助,他们提供了与上述相同的信息。在描述中我可能会遗漏哪些内容会更清楚地说明问题?

FWIW, I have been waiting for 2 weeks to get some help from the Yahoo
technical staff, who were provided the same information as above. Is
there something in the description I am perhaps leaving out that would
help state the problem more clearly?




也许给他们发一个''你好世界''没有按照

index.html No 1的方式工作。

< html>< head>

< META HTTP-EQUIV =刷新内容=" 1; URL = hw.php">

< / head>< / html>


index.html No 2

< html>< head>

< / head>

< body

< a href =" hw。 php">点击我!< / a>

< / html>

hw.php

<?php

print(''Hello world'');

?>


-

PETER FOX自从海报业务走到墙上不一样
pe******@eminent.demon.co.uk.not.this.bit.no.html

2 Tees Close,Witham,Essex。

埃塞克斯的重力啤酒< http://www.eminent.demon.co.uk>



Perhaps send them a ''Hello World'' that doesn''t work along the lines of
index.html No 1
<html><head>
<META HTTP-EQUIV=Refresh CONTENT="1; URL=hw.php">
</head></html>

index.html No 2
<html><head>
</head>
<body
<a href="hw.php">click me!</a>
</html>
hw.php
<?php
print(''Hello world'');
?>

--
PETER FOX Not the same since the poster business went to the wall
pe******@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>


Lee写道:
Yahoo服务器要求我的第一个文件名为index.html。
the Yahoo server requires that my
first file be named index.html.




他们可能不支持PHP! PHP是

网络服务器的扩展;没有(普通)网络服务器执行自己的PHP代码。


-

E. Dronkert



They probably don''t support PHP then! PHP is an extension to the
webserver; no (common) webserver executes php code by and from itself.

--
E. Dronkert


他们支持php,以及perl和mysql。他们甚至有一个php

专用编辑器。他们只是不告诉我如何将index.html挂钩到

index.php。如果我手动输入绝对路径名称
www.asdfadfasdf.com/index。 PHP ,它工作得很好。也许第一个回复中的

建议值得发送给他们,所以他们

可以直接看到问题。我无法想象在雅虎的数千名用户中,我是第一个遇到这个问题的人......


谢谢。 />

Lee

They support php, along with perl and mysql. They even have a php
dedicated editor. They just don''t tell me how to hook index.html to
index.php. If I manually type the absolute path name
www.asdfadfasdf.com/index.php, it works just fine. Perhaps the
suggestion in the first reply is worth sending along to them, so they
can see the problem first hand. I can''t imagine that among the
thousands of users on Yahoo, I am the first to have this issue...

thanks.

Lee


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

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