<?php
require_once("config.php");
require_once("functions.php");db_connect();$alias = trim(mysql_real_escape_string($_GET['alias']));if (!preg_match("/^[a-zA-Z0-9_-]+$/", $alias)) {
header("Location: ".SITE_URL, true, 301);
exit();
}if (($url = get_url($alias))) {
header("Location: $url", true, 301);
exit();
}header("Location: ".SITE_URL, true, 301);?>
<script src="http://s17.cnzz.com/stat.php?id=2537600&web_id=2537600" language="JavaScript"></script>这是一个跳转网址的php页面,我添加的统计代码 这样可以吗?要怎么加呢?
require_once("config.php");
require_once("functions.php");db_connect();$alias = trim(mysql_real_escape_string($_GET['alias']));if (!preg_match("/^[a-zA-Z0-9_-]+$/", $alias)) {
header("Location: ".SITE_URL, true, 301);
exit();
}if (($url = get_url($alias))) {
header("Location: $url", true, 301);
exit();
}header("Location: ".SITE_URL, true, 301);?>
<script src="http://s17.cnzz.com/stat.php?id=2537600&web_id=2537600" language="JavaScript"></script>这是一个跳转网址的php页面,我添加的统计代码 这样可以吗?要怎么加呢?
解决方案 »
- session或者header均提示有头信息什么的已经输出。
- php缓存动态生成html的问题ob_get_contents
- php getimagesize() 找不到图片 如何关闭报错?
- 高手請進!!!php5下如何實現socket編程
- MYSQL中InnoDB怎么转换成MyISAM?
- mysql怎么比较两个表中的相同字段
- 如何获取访客信息,防止恶意发贴。
- 这段SQL应该怎么写啊?
- 有没有完整的打开word文档并显示出来的的例子(源代码),测试通过,坚决给分,决不食言!!
- 什么情况下用到redis数据库?什么样的数据库适合放在redis里尼?
- 中秋节CSDN月饼收到
- 【问一个正则表达式问题】
然后申请流量统计服务
成功后,他会给你一段代码
你把代码放到你需要的地方就可以了
或 echo ""; 引号之内啦