在ASP下我的头尾左右都是用的包含的方法,在PHP下我也想这么做,可是看不到结果,是怎么回事啊,本人正在学PHP,谢谢各位大虲指点一二。
21 个解决方案
#1
没有人回答吗?
#2
可以的
<?php
include("filename");
?>
<?php
include("filename");
?>
#3
是啊,就是这样改的,但在浏览器下不显示包含的文件
#4
是不是要改httpd.conf的包含路径,如果是怎么改?
#5
"不显示包含的文件"是什么意思,你要达到什么效果?
#6
比如说在整个页面中,最上面的是另一个文件用包含方法来实现,我在ASP下就是这么做的,很方便,改起来也很容易,可是在PHP下用了之后在浏览器中看不到最上面的那部分,我看了一些资料好像是说要改httpd.conf的包含路径,但不知怎么改,有哪位高人啊,我很急
#7
没有人回答吗?怎么改路径啊?
#8
include 的路径在php.ini中指定。
默认的至少有当前目录。
你并未把你的问题说清楚
默认的至少有当前目录。
你并未把你的问题说清楚
#9
就是页面的头部我调用的是另一个文件,但在浏览器里看不到头部
#10
代码
#11
我把PHP.ini的代码改为
; php.ini for PEAR tests
include_path="e:/apache/swww"
这样写对不对啊,
折腾的我现在在浏览器里啥也看不到了
; php.ini for PEAR tests
include_path="e:/apache/swww"
这样写对不对啊,
折腾的我现在在浏览器里啥也看不到了
#12
include_path = ".;e:\pache\swww"
贴出你的代码,没什么可保密的。
贴出你的代码,没什么可保密的。
#13
就是,这里都是互相帮助的!
#14
<html>
<head>
<title>西南网景</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<?php include("top.php"); ?>
<table width="760" height="356" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="175" height="356" valign="top"><?php include("left3.php"); ?></td>
<td width="789" colspan="2" valign="top"><table border=1 cellpadding=0 cellspacing=0
width="100%" bgcolor="#efefef" align="center" bordercolordark="ffffff">
<tbody>
<tr>
<td height=22 valign=bottom> <img height=10
src="swww/images/dotdb.gif" width=10> <font
color=#000000>当前位置:</font><a href="swww/index.asp">首页</a> -> <font color="#990000">公司动态</font></td>
</tr>
</tbody>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
</td>
</tr>
</table> </td>
</tr>
</table>
<?php include("bottom.php"); ?>
</body>
</html>
<head>
<title>西南网景</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<?php include("top.php"); ?>
<table width="760" height="356" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="175" height="356" valign="top"><?php include("left3.php"); ?></td>
<td width="789" colspan="2" valign="top"><table border=1 cellpadding=0 cellspacing=0
width="100%" bgcolor="#efefef" align="center" bordercolordark="ffffff">
<tbody>
<tr>
<td height=22 valign=bottom> <img height=10
src="swww/images/dotdb.gif" width=10> <font
color=#000000>当前位置:</font><a href="swww/index.asp">首页</a> -> <font color="#990000">公司动态</font></td>
</tr>
</tbody>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
</td>
</tr>
</table> </td>
</tr>
</table>
<?php include("bottom.php"); ?>
</body>
</html>
#15
以上代码以前是ASP,现我改成了PHP的,包含的内容在浏览器中看不到
#16
你这个文件的后缀是什么?.html?.asp?.php?
#17
当然是PHP了
#18
好,我都没急,你倒急了。
那么top.php、bottom.php中都是些什么呢?
那么top.php、bottom.php中都是些什么呢?
#19
我当然急了,要在短时间内把一个ASP网站改成PHP的,而我又不懂,麻烦我把top.php的代码给你,主要是图片。
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body topmargin="0" onLoad="MM_preloadImages('images/images/images/t2_03.gif','images/images/images/t2_04.gif','images/images/images/t2_05.gif','images/images/images/t2_06.gif','images/images/images/t2_07.gif','images/images/images/t2_08.gif','images/images/images/t2_09.gif')">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="182" height="79"><div align="right"><img src="images/logo.gif" width="173" height="65"></div></td>
<td width="578" background="images/images/images/t1_02.gif"><div align="center"><a href="http://www.swww.com.cn/linfeng" target="_blank"><img src="images/logob.gif" width="424" height="60" border="0"></a></div></td>
</tr>
<tr valign="top">
<td height="25" colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="13%"><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','images/images/images/t2_03.gif',1)"><img src="images/images/images/t1_03.gif" name="Image10" width="108" height="25" border="0"></a></td>
<td width="10%"><a href="swww.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','images/images/images/t2_04.gif',1)"><img src="images/images/images/t1_04.gif" name="Image11" width="81" height="25" border="0"></a></td>
<td width="10%"><a href="active.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','images/images/images/t2_05.gif',1)"><img src="images/images/images/t1_05.gif" name="Image12" width="83" height="25" border="0"></a></td>
<td width="9%"><a href="success.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','images/images/images/t2_06.gif',1)"><img src="images/images/images/t1_06.gif" name="Image13" width="77" height="25" border="0"></a></td>
<td width="11%"><a href="domain.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','images/images/images/t2_07.gif',1)"><img src="images/images/images/t1_07.gif" name="Image14" width="88" height="25" border="0"></a></td>
<td width="9%"><a href="zhaoping.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image15','','images/images/images/t2_08.gif',1)"><img src="images/images/images/t1_08.gif" name="Image15" width="76" height="25" border="0"></a></td>
<td width="11%"><font color="#FFFF00"><a href="learn.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','images/images/images/t2_09.gif',1)"><img src="images/images/images/t1_09.gif" name="Image9" width="96" height="25" border="0"></a></font></td>
<td width="27%" valign="bottom" background="swww/images/images/images/t1_10.gif"><div align="center"><font color="#FFFF00">
</font></div></td>
</tr>
</table></td>
</tr>
</table>
在dreamweaver下我之前贴的代码的包含的部分(top.php)可以看到,在浏览器中不行
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body topmargin="0" onLoad="MM_preloadImages('images/images/images/t2_03.gif','images/images/images/t2_04.gif','images/images/images/t2_05.gif','images/images/images/t2_06.gif','images/images/images/t2_07.gif','images/images/images/t2_08.gif','images/images/images/t2_09.gif')">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="182" height="79"><div align="right"><img src="images/logo.gif" width="173" height="65"></div></td>
<td width="578" background="images/images/images/t1_02.gif"><div align="center"><a href="http://www.swww.com.cn/linfeng" target="_blank"><img src="images/logob.gif" width="424" height="60" border="0"></a></div></td>
</tr>
<tr valign="top">
<td height="25" colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="13%"><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','images/images/images/t2_03.gif',1)"><img src="images/images/images/t1_03.gif" name="Image10" width="108" height="25" border="0"></a></td>
<td width="10%"><a href="swww.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','images/images/images/t2_04.gif',1)"><img src="images/images/images/t1_04.gif" name="Image11" width="81" height="25" border="0"></a></td>
<td width="10%"><a href="active.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','images/images/images/t2_05.gif',1)"><img src="images/images/images/t1_05.gif" name="Image12" width="83" height="25" border="0"></a></td>
<td width="9%"><a href="success.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','images/images/images/t2_06.gif',1)"><img src="images/images/images/t1_06.gif" name="Image13" width="77" height="25" border="0"></a></td>
<td width="11%"><a href="domain.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','images/images/images/t2_07.gif',1)"><img src="images/images/images/t1_07.gif" name="Image14" width="88" height="25" border="0"></a></td>
<td width="9%"><a href="zhaoping.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image15','','images/images/images/t2_08.gif',1)"><img src="images/images/images/t1_08.gif" name="Image15" width="76" height="25" border="0"></a></td>
<td width="11%"><font color="#FFFF00"><a href="learn.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','images/images/images/t2_09.gif',1)"><img src="images/images/images/t1_09.gif" name="Image9" width="96" height="25" border="0"></a></font></td>
<td width="27%" valign="bottom" background="swww/images/images/images/t1_10.gif"><div align="center"><font color="#FFFF00">
</font></div></td>
</tr>
</table></td>
</tr>
</table>
在dreamweaver下我之前贴的代码的包含的部分(top.php)可以看到,在浏览器中不行
#20
我也遇到了同样的问题,我在一个ASP文件中,头文件是包含了一个HTML文件。运行ASP文件时,能正确显示那个HTML文件。可是,当我在PHP文件里用include"top.html"方法包含这个文件时,就不显示了。为什么啊大哥,我郁闷了一下午了呀!!!!!!!!!!111
#21
我已经知道为什么了,你把你的php.ini的include_path的包含路径改一下就好
#1
没有人回答吗?
#2
可以的
<?php
include("filename");
?>
<?php
include("filename");
?>
#3
是啊,就是这样改的,但在浏览器下不显示包含的文件
#4
是不是要改httpd.conf的包含路径,如果是怎么改?
#5
"不显示包含的文件"是什么意思,你要达到什么效果?
#6
比如说在整个页面中,最上面的是另一个文件用包含方法来实现,我在ASP下就是这么做的,很方便,改起来也很容易,可是在PHP下用了之后在浏览器中看不到最上面的那部分,我看了一些资料好像是说要改httpd.conf的包含路径,但不知怎么改,有哪位高人啊,我很急
#7
没有人回答吗?怎么改路径啊?
#8
include 的路径在php.ini中指定。
默认的至少有当前目录。
你并未把你的问题说清楚
默认的至少有当前目录。
你并未把你的问题说清楚
#9
就是页面的头部我调用的是另一个文件,但在浏览器里看不到头部
#10
代码
#11
我把PHP.ini的代码改为
; php.ini for PEAR tests
include_path="e:/apache/swww"
这样写对不对啊,
折腾的我现在在浏览器里啥也看不到了
; php.ini for PEAR tests
include_path="e:/apache/swww"
这样写对不对啊,
折腾的我现在在浏览器里啥也看不到了
#12
include_path = ".;e:\pache\swww"
贴出你的代码,没什么可保密的。
贴出你的代码,没什么可保密的。
#13
就是,这里都是互相帮助的!
#14
<html>
<head>
<title>西南网景</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<?php include("top.php"); ?>
<table width="760" height="356" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="175" height="356" valign="top"><?php include("left3.php"); ?></td>
<td width="789" colspan="2" valign="top"><table border=1 cellpadding=0 cellspacing=0
width="100%" bgcolor="#efefef" align="center" bordercolordark="ffffff">
<tbody>
<tr>
<td height=22 valign=bottom> <img height=10
src="swww/images/dotdb.gif" width=10> <font
color=#000000>当前位置:</font><a href="swww/index.asp">首页</a> -> <font color="#990000">公司动态</font></td>
</tr>
</tbody>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
</td>
</tr>
</table> </td>
</tr>
</table>
<?php include("bottom.php"); ?>
</body>
</html>
<head>
<title>西南网景</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<?php include("top.php"); ?>
<table width="760" height="356" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="175" height="356" valign="top"><?php include("left3.php"); ?></td>
<td width="789" colspan="2" valign="top"><table border=1 cellpadding=0 cellspacing=0
width="100%" bgcolor="#efefef" align="center" bordercolordark="ffffff">
<tbody>
<tr>
<td height=22 valign=bottom> <img height=10
src="swww/images/dotdb.gif" width=10> <font
color=#000000>当前位置:</font><a href="swww/index.asp">首页</a> -> <font color="#990000">公司动态</font></td>
</tr>
</tbody>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
</td>
</tr>
</table> </td>
</tr>
</table>
<?php include("bottom.php"); ?>
</body>
</html>
#15
以上代码以前是ASP,现我改成了PHP的,包含的内容在浏览器中看不到
#16
你这个文件的后缀是什么?.html?.asp?.php?
#17
当然是PHP了
#18
好,我都没急,你倒急了。
那么top.php、bottom.php中都是些什么呢?
那么top.php、bottom.php中都是些什么呢?
#19
我当然急了,要在短时间内把一个ASP网站改成PHP的,而我又不懂,麻烦我把top.php的代码给你,主要是图片。
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body topmargin="0" onLoad="MM_preloadImages('images/images/images/t2_03.gif','images/images/images/t2_04.gif','images/images/images/t2_05.gif','images/images/images/t2_06.gif','images/images/images/t2_07.gif','images/images/images/t2_08.gif','images/images/images/t2_09.gif')">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="182" height="79"><div align="right"><img src="images/logo.gif" width="173" height="65"></div></td>
<td width="578" background="images/images/images/t1_02.gif"><div align="center"><a href="http://www.swww.com.cn/linfeng" target="_blank"><img src="images/logob.gif" width="424" height="60" border="0"></a></div></td>
</tr>
<tr valign="top">
<td height="25" colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="13%"><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','images/images/images/t2_03.gif',1)"><img src="images/images/images/t1_03.gif" name="Image10" width="108" height="25" border="0"></a></td>
<td width="10%"><a href="swww.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','images/images/images/t2_04.gif',1)"><img src="images/images/images/t1_04.gif" name="Image11" width="81" height="25" border="0"></a></td>
<td width="10%"><a href="active.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','images/images/images/t2_05.gif',1)"><img src="images/images/images/t1_05.gif" name="Image12" width="83" height="25" border="0"></a></td>
<td width="9%"><a href="success.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','images/images/images/t2_06.gif',1)"><img src="images/images/images/t1_06.gif" name="Image13" width="77" height="25" border="0"></a></td>
<td width="11%"><a href="domain.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','images/images/images/t2_07.gif',1)"><img src="images/images/images/t1_07.gif" name="Image14" width="88" height="25" border="0"></a></td>
<td width="9%"><a href="zhaoping.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image15','','images/images/images/t2_08.gif',1)"><img src="images/images/images/t1_08.gif" name="Image15" width="76" height="25" border="0"></a></td>
<td width="11%"><font color="#FFFF00"><a href="learn.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','images/images/images/t2_09.gif',1)"><img src="images/images/images/t1_09.gif" name="Image9" width="96" height="25" border="0"></a></font></td>
<td width="27%" valign="bottom" background="swww/images/images/images/t1_10.gif"><div align="center"><font color="#FFFF00">
</font></div></td>
</tr>
</table></td>
</tr>
</table>
在dreamweaver下我之前贴的代码的包含的部分(top.php)可以看到,在浏览器中不行
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body topmargin="0" onLoad="MM_preloadImages('images/images/images/t2_03.gif','images/images/images/t2_04.gif','images/images/images/t2_05.gif','images/images/images/t2_06.gif','images/images/images/t2_07.gif','images/images/images/t2_08.gif','images/images/images/t2_09.gif')">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="182" height="79"><div align="right"><img src="images/logo.gif" width="173" height="65"></div></td>
<td width="578" background="images/images/images/t1_02.gif"><div align="center"><a href="http://www.swww.com.cn/linfeng" target="_blank"><img src="images/logob.gif" width="424" height="60" border="0"></a></div></td>
</tr>
<tr valign="top">
<td height="25" colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="13%"><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','images/images/images/t2_03.gif',1)"><img src="images/images/images/t1_03.gif" name="Image10" width="108" height="25" border="0"></a></td>
<td width="10%"><a href="swww.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','images/images/images/t2_04.gif',1)"><img src="images/images/images/t1_04.gif" name="Image11" width="81" height="25" border="0"></a></td>
<td width="10%"><a href="active.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','images/images/images/t2_05.gif',1)"><img src="images/images/images/t1_05.gif" name="Image12" width="83" height="25" border="0"></a></td>
<td width="9%"><a href="success.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','images/images/images/t2_06.gif',1)"><img src="images/images/images/t1_06.gif" name="Image13" width="77" height="25" border="0"></a></td>
<td width="11%"><a href="domain.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','images/images/images/t2_07.gif',1)"><img src="images/images/images/t1_07.gif" name="Image14" width="88" height="25" border="0"></a></td>
<td width="9%"><a href="zhaoping.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image15','','images/images/images/t2_08.gif',1)"><img src="images/images/images/t1_08.gif" name="Image15" width="76" height="25" border="0"></a></td>
<td width="11%"><font color="#FFFF00"><a href="learn.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','images/images/images/t2_09.gif',1)"><img src="images/images/images/t1_09.gif" name="Image9" width="96" height="25" border="0"></a></font></td>
<td width="27%" valign="bottom" background="swww/images/images/images/t1_10.gif"><div align="center"><font color="#FFFF00">
</font></div></td>
</tr>
</table></td>
</tr>
</table>
在dreamweaver下我之前贴的代码的包含的部分(top.php)可以看到,在浏览器中不行
#20
我也遇到了同样的问题,我在一个ASP文件中,头文件是包含了一个HTML文件。运行ASP文件时,能正确显示那个HTML文件。可是,当我在PHP文件里用include"top.html"方法包含这个文件时,就不显示了。为什么啊大哥,我郁闷了一下午了呀!!!!!!!!!!111
#21
我已经知道为什么了,你把你的php.ini的include_path的包含路径改一下就好