怎样可以浏览本机的php文件?

由 Master 在 06-02-2003 21:16 发表:

怎样可以浏览本机的php文件?

我在apache的目录下测试了一下一个php文件:

 1<html>
 2<body>   
 3  
 4现在时间:   
 5  
 6<?   
 7  
 8$T=Date("H:i:s");   
 9  
10echo $T;   
11  
12?>
13</body>
14</html>

打开这个文件只显示:好像是说没执行PHP.但在浏览器里却是显示全文,不知是什么原因?是不是没有启动PHP和apache,不知怎么启动.还有在浏览器里输入localhost可以浏览apache预置的网页.


由 Master 在 06-02-2003 21:17 发表:


刚才没说清楚:

打开时只显示:"现在时间:"


由 Snoopy 在 06-02-2003 22:17 发表:


apache预置的网页?那一页哪是php来的啊?

静态的也


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 Master 在 06-02-2003 22:42 发表:


这我知道,我想问一下,怎样才能让apache支持PHP呢?我是

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus