写的一个php系统登录后看不到default.php页面内容

来源:百度知道 编辑:UC知道 时间:2024/06/27 08:15:45
在httpd.conf中修改了documentroot路径为:“d:/www/example” ,在浏览器地址栏里输入“127.0.0.1/”进入登陆页面,但登录后,default.php怎么也不显示(default.php是个框架页面)。
无奈,将documentroot路径改回:“d:/www”,在地址栏里输入“127.0.0.1/example/index.php"登陆才能看到default.php的页面。

default.php:
<html>
<frameset rows="106,*" frameborder="yes" border="1" framespacing="0">
<frame src="header.php" name="topFrame" scrolling="NO" noresize>
<frame src="main.php" name="mainFrame" scrolling="no">
</frameset>
<noframes>
<body>

</body>
</noframes>
</html>

请问怎么解决这个问题,用第一种方法显示啊?

在apache中的设置,要把default.php加入,这样就默认了

修改httpd.conf之后需要重新启动apache才能生效。

APACHE的httpd.conf文件里,你没有完全设置好,你看一下,里面有一项<Direction “d:/www” >字样的,里面规定的index文件的文件名,把“d:/www“改成“d:/www/example” ,或者在里面添加index文件 default.php即可了。

1.你需要在httpd.conf中进行两次修改
2.确定将你的文件放到了d:/www/example文件夹下

应该是你在做登录成功后的跳转连接不对啊,最好把你的登录验证代码发来看看,