我哪里什么都没有?只是gzdoc.php中的文件,然后用/* */屏蔽掉了
4.php中所有的代码<?
/*
//gzdoc.php
ob_start();
ob_implicit_flush(0);
function GzDocOut()
{
$gziplevel=9;
$ENCODING = "gzip";
$Contents = ob_get_contents();
$Contents .= "\n<!-- Use compress $ENCODING -->\n";
ob_end_clean();
header("Content-Encoding: $ENCODING");
print pack('cccccccc',0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00);
$Size = strlen($Contents);
$Crc = crc32($Contents);
$Contents = gzcompress($Contents,$gziplevel);
$Contents = substr($Contents, 0, strlen($Contents) - 4);
print $Contents;
print pack('V',$Crc);
print pack('V',$Size);
exit;
}
*/
?> <?php
//test.php
include_once("./gzdoc.php");
echo "test";
GzDocOut();
?>
4.php中所有的代码<?
/*
//gzdoc.php
ob_start();
ob_implicit_flush(0);
function GzDocOut()
{
$gziplevel=9;
$ENCODING = "gzip";
$Contents = ob_get_contents();
$Contents .= "\n<!-- Use compress $ENCODING -->\n";
ob_end_clean();
header("Content-Encoding: $ENCODING");
print pack('cccccccc',0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00);
$Size = strlen($Contents);
$Crc = crc32($Contents);
$Contents = gzcompress($Contents,$gziplevel);
$Contents = substr($Contents, 0, strlen($Contents) - 4);
print $Contents;
print pack('V',$Crc);
print pack('V',$Size);
exit;
}
*/
?> <?php
//test.php
include_once("./gzdoc.php");
echo "test";
GzDocOut();
?>
不是有一个"test"echo出来了吗?怎么不见了?