- 论坛徽章:
- 0
|
a.php文件中调用是这样的:- <script src="../../common/b.php?showNum=1&numOfTitle=&showDate=0&showCounts=0&orderOfShow=CD"></script>
复制代码 b.php文件中部分代码是这样的:- $articleHtml="<table width=100% cellpadding=0 valign=top class=articleList>";
- $articleHtml.="<tr align=left><td class=articleListTitleIcon height=23> </td><td class=".$class." align=left><a href=".$href." title=".$title.">".$picTip.mbSubstring($title,0,$numOfTitle)."</a> ".$picOfTop."</td><td align=right nowrap>".$date." ".$counts."</td></tr>";
- $articleHtml.="<TR><TD colSpan=3 class=".$class.">".$d_page."</TD></TR>";
- $articleHtml.="</table>";
- document.write("<?echo $articleHtml;?>");
复制代码 现在浏览器访问a.php时可以显示出b.php读取数据库的内容,但是查看a.php源文件时,不能显示b.php最终显示的文字、图片等内容。这样不利于百度获取更新a.php,因为百度抓取的a.php始终是script那些调用代码。
请问有什么其他办法吗? |
|