访问:
http://wapftp.fcphp.net/m/classes/bbcodesparser/cs.php(我用UC访问空白,查看Header:Content-type: text/vnd.wap.wml;查看源码:</wml>后附有一段JS广告,就是它让UC无法解析)
访问:
http://wapftp.fcphp.net/hu/read2.php?id=bbs(能正常显示页面,且查看源码:</wml>后无附着JS广告)
问题:
虽仔细看过read2.php,但没发现其关键所在,你是怎么让广告消失的,你说过可以用Content-Length,但表示无效,求解释
cs.php:
<?php
ob_start('outgzip');
header("Content-type: text/vnd.wap.wml");
echo '<?xml version="1.0" encoding="utf-8"?>';
$APP=array('op'=>'wml');
include 'bbcodesparser.php';
$x=new BBCodesParser;
$str='[html=GMJMT][form=get,mpw.php][text=w]25[/text][h=t]wtm[/h][input=w]mt[/input][submit=m]d[/submit]
[sel=m][op=n]天[/op][/sel][submit]n[/submit][/form][/html]';
file_put_contents('w',$x->getParsedStr($str));
include('w');
function outgzip($f)
{
/*if(function_exists('gzencode'))
{
$f=gzencode($f,9);
header('Content-Encoding: gzip');
header('Vary: Accept-Encoding');
}
*/header('Content-Length: '.strlen($f));
return $f;
}
?>