被script引用的页面,要遵守script语法输出,也就是要用document.write输出内容

解决方案 »

  1.   

    http://v.mxabc.com/e/ty/200701/60256.shtml源文件里面包含的<script   type="text/javascript"   language="javascript"   src="http://v.mxabc.com/play_detail.asp?id=60256">   </script>显示为flash的内容,但直接打开http://v.mxabc.com/play_detail.asp?id=60256却跳转到网站首页。我的意思是怎么判断play_detail.asp是被<script>这种方法调用还是直接输网址打开的
      

  2.   


    // 代码运行要有curl包
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, "http://v.mxabc.com/play_detail.asp?id=60256");
    // 把这个 0 换成 1 再次执行,看看结果
    if (0)
    {
        curl_setopt ($ch, CURLOPT_REFERER, "http://v.mxabc.com/e/ty/200701/60256.shtml");
    }
    curl_exec ($ch);
    curl_close ($ch);另外一个帖子大家都告诉你了 
    验证 $_SERVER['HTTP_REFERER'] 的啦~~
      

  3.   

    验证$_SERVER['HTTP_REFERER']的方法试过行不通,没看懂你的意思,能详细点吗