可以考虑用script形式。
加入你的统计代码放在 syscount.php,
那么你可以使得 syscount.php 中不输出任何数据。
然后在 index.php 中加入一行
<script language="javascript" src="syscount.php"></script>
那就可以了
加入你的统计代码放在 syscount.php,
那么你可以使得 syscount.php 中不输出任何数据。
然后在 index.php 中加入一行
<script language="javascript" src="syscount.php"></script>
那就可以了
我在主文件中已经有了输出,还可以用 setcookie 吗?
因为通过script来调用syscount.php就相当于重新执行了一个动态页的脚本,跟主页面没有任何关系
不信阁下可以试试
http://www.foxbat.cn/list.asp?id=159