[matej@server matej]$ wget http://www.polarhome.com/forum/rss.php
--00:24:50-- http://www.polarhome.com/forum/rss.php
=> `rss.php'
Razrešuje se www.polarhome.com...81.216.198.11
Povezujem se na www.polarhome.com[81.216.198.11]:80... priključen.
HTTP zahteva poslana, čakam odgovor... 200 OK
Dolžina: nedoločen [text/xml]
[ <=> ] 40,400 29.18K/s
00:24:54 (29.14 KB/s) - `rss.php' saved [40,400]
Firefox showed les. Gzip should be on - at lest there is a
- Code: Select all
// gzip_compression
//
$do_gzip_compress = FALSE;
if ( $board_config['gzip_compress'] )
{
$phpver = phpversion();
$useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;
if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) )
{
if ( extension_loaded('zlib') )
{
ob_start('ob_gzhandler');
}
}
else if ( $phpver > '4.0' )
{
if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') )
{
if ( extension_loaded('zlib') )
{
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
header('Content-Encoding: gzip');
}
}
}
}
// end gzip block
part in the rss.php.