Just has to restore my local system after a crash: backups are never quite what you hope...
XP SP2
Apache 2.0
php 4.3.11
The following code snippet is from vb3. Sadly, it returns nothing. When I bypass it, I get my expected page. So I'm thinking I have not properly installed or enabled some compression handler.
Yet I have a live working site. When I compare php.ini/phpinfo I can spot no difference.
Just fishing for obvious clues from any wayward gurus...? The encoding is "gzip" and $returntext is a large string of compressed goo.
header('Content-Encoding: ' . $encoding);
if (false AND function_exists('gzencode') AND PHP_VERSION > '4.2')
{
$returntext = gzencode($text, $level);
}
else
{
$size = strlen($text);
$crc = crc32($text);
$returntext = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff";
$returntext .= substr(gzcompress($text, $level), 2, -4);
$returntext .= pack('V', $crc);
$returntext .= pack('V', $size);
}
Many thanks in advance.