在XP上加载最新版本的Apache http服务器,并在该服务器上安装了php ... [英] loaded latest edition of Apache http server on XP, and installed php on that server...

查看:74
本文介绍了在XP上加载最新版本的Apache http服务器,并在该服务器上安装了php ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何运行.php程序? (我开始使用hello world

脚本)

How do I run a .php program? (I''m starting with the "hello world"
script)

推荐答案

2月6点,下午3点32分,rfhurley < rfhur ... @ yahoo.comwrote:
On Feb 6, 3:32 pm, "rfhurley" <rfhur...@yahoo.comwrote:

如何运行.php程序? (我开始使用hello world

脚本)
How do I run a .php program? (I''m starting with the "hello world"
script)



好​​吧,把你的.php文件放在文件根目录中网络服务器(例如:c:

\Program Files \ Apache Software Foundation \ Apache2.2 \ htdocs)并输入
http://localhost/youfilename.php 进入网络浏览器。

Well, put your .php file in the document root of the webserver (eg. c:
\Program Files\Apache Software Foundation\Apache2.2\htdocs) and type
http://localhost/youfilename.php into a web browser.


2月6日下午7:24,Benjamin < musiccomposit ... @ gmail.comwrote:
On Feb 6, 7:24 pm, "Benjamin" <musiccomposit...@gmail.comwrote:

2月6日下午3:32,rfhurley < rfhur ... @ yahoo.comwrote:我如何运行.php程序? (我开始使用你好世界
On Feb 6, 3:32 pm, "rfhurley" <rfhur...@yahoo.comwrote:How do I run a .php program? (I''m starting with the "hello world"

script)
script)



嗯,放您的.php文件位于Web服务器的文档根目录中(例如:c:

\Program Files \ Apache Software Foundation \ Apache2.2 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ .phpinto一个Web浏览器。


Well, put your .php file in the document root of the webserver (eg. c:
\Program Files\Apache Software Foundation\Apache2.2\htdocs) and typehttp://localhost/youfilename.phpinto a web browser.



Benjamin,

感谢您的回复。好的,我将php doc放在正确的文件夹中,

localhost能够填充它,但它只是读出代码。请

我必须以某种方式配置PHP以使脚本正常工作吗?

顺便说一句,脚本读取:"<?php phpinfo(); ?>" (引号我的)

Benjamin,
Thank you for responding. OK, I put the php doc in the correct folder,
where localhost is able to fid it, but it just reads out the code. Do
I have to configure the PHP in a certain way for the script to work?
btw, the script reads: "<?php phpinfo(); ?>" (quotation marks mine)


rfhurley写道:
rfhurley wrote:

2月6日,7:24下午,本杰明 < musiccomposit ... @ gmail.comwrote:
On Feb 6, 7:24 pm, "Benjamin" <musiccomposit...@gmail.comwrote:

> 2月6日下午3:32," rfhurley" < rfhur ... @ yahoo.comwrote:我如何运行.php程序? (我从hello world开始,
>On Feb 6, 3:32 pm, "rfhurley" <rfhur...@yahoo.comwrote:How do I run a .php program? (I''m starting with the "hello world"

>>脚本)
>>script)


嗯,放您的.php文件位于Web服务器的文档根目录中(例如:c:
\Program Files \ Apache Software Foundation \ Apache2.2~htdocs),并输入http://localhost/youfilename.phpin到web浏览器。

Well, put your .php file in the document root of the webserver (eg. c:
\Program Files\Apache Software Foundation\Apache2.2\htdocs) and typehttp://localhost/youfilename.phpinto a web browser.



本杰明,

感谢您的回复。好的,我将php doc放在正确的文件夹中,

localhost能够填充它,但它只是读出代码。请

我必须以某种方式配置PHP以使脚本正常工作吗?

顺便说一句,脚本读取:"<?php phpinfo(); ?>" (引号我的)


Benjamin,
Thank you for responding. OK, I put the php doc in the correct folder,
where localhost is able to fid it, but it just reads out the code. Do
I have to configure the PHP in a certain way for the script to work?
btw, the script reads: "<?php phpinfo(); ?>" (quotation marks mine)



听起来好像你没有告诉apache如何处理.php文件。


重新阅读php的安装细节以及你需要把它放在

hpptd.conf文件中以获取Apache处理php文件。


问候


贾斯汀


sounds like you haven''t told apache what to do with .php files.

Re read the installation details for php and what you need to put in the
hpptd.conf file to get Apache processing php files.

Regards

Justin


这篇关于在XP上加载最新版本的Apache http服务器,并在该服务器上安装了php ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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