特别奇怪的include路径问题!!。。。。。。。。。。
哪位高手能帮我解决这个奇怪的问题呢?
我的a.php的内容为
<?php
session_start();
$area = "北京";
include("../include/areas.php");
$_SESSION["area"] = $area;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><?php include("http://x.x.x.x/a/b.php")?></td>
</tr>
</table>
</body>
</html>
b.php文件的内容为
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><?php echo $area;?></td>
</tr>
</table>
但是在执行程序后没有输出$area的值,当把a.php中的<?php include("http://x.x.x.x/a/b.php")?>改为<?php include("../b.php")?>时,执行程序后输出了$area的值,这是为什么呢?