我爱Aspx >> C#.Net >> 使用 php4 加速 web 传输print "Compressed lenth: ".strlen(gzcompress($Contents))."<BR>";
exit;
}else{
header("Content-Encoding: $ENCODING");
}
print pack('cccccccc',0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00);
$Size = strlen($Contents);
$Crc = crc32($Contents);
$Contents = gzcompress($Contents);
$Contents = substr($Contents, 0, strlen($Contents) - 4);
print $Contents;
print pack('V',$Crc);
print pack('V',$Size);
exit;
}else{
ob_end_flush();
$Error_Msg = str_replace('<br>','',GetHeader());
$Error_Msg .= "Time: ".date("Y-m-d H:i:s")."n";
$Error_Msg .= "Remote-Address: ".$REMOTE_ADDR."n";
//mail('your@none.net', "User can not use gzip output in file $PHP_SELF!!!", $Error_Msg);
exit;
}
}
?>
上一篇: MYSQL中如何存取二进制文件
下一篇: “在phpMyAdmin使用用户口令登陆”补充
Ҷƪл˵?
股票报价的WebService之一[05-12]
股票报价的WebService之二[05-12]
股票报价的WebService之四[05-12]
.NET之ASP Web Application快速入..[05-12]
.NET之ASP Web Services 快速入门[05-12]
轻松加密ASP.NET 2.0 Web程序配置..[05-12]
web应用程序中的数据库连接(2)[05-12]
web应用程序中的数据库连接(1)[05-12]
ASP.NET创建Web服务之使用事务[05-12]
Web服务体系结构[05-12]
JDBC接口技术[05-12]
VB.NET中层次数据绑定TreeView的..[05-12]
Delphi代码标准文档[05-12]
股票报价的WebService之一[05-12]
股票报价的WebService之二[05-12]
XML+JAVASCRIPT+ASP在线短信息功..[05-12]
ASP作的剪包锤游戏[05-12]
用ASP做一个域名查询系统[05-12]
股票报价的WebService之四[05-12]
用ASP+XML打造留言本 - 1[05-12]