为什么客户端无法打开php文件?

由 随风飘来 在 08-24-2003 19:53 发表:

为什么客户端无法打开php文件?

新装php测试代码如下:

1<html>
2<head>
3<title>My First PHP Page</title>
4</head>
5<body bgcolor="#fffff">
6<? echo "Hello World"; ?>
7</body>
8</html>

以上保存文件名为test.php4

httpd.conf作了如下的修改:

1<ifmodule mod_dir.c="">   
2  
3DirectoryIndex index.html index.shtml index.cgi index.phtml test.php4   
4  
5</ifmodule>

AddType application/x-httpd-php4 .php4 .phtml

AddType application/x-httpd-php4-source .phps

在客户打开时出来的是保存叶面且文件名为服务器端的IP

请问哪位高手知道什么原因?

hp的原代码文件是 hp-4.3.2.tar.gz


由 Glue 在 08-24-2003 22:50 发表:


httpd.conf里还要修改

LoadModule那行吧

而且AddType 那行跟我的也不太一样


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