I am getting a strange error message with the following piece of PHP code (I am not a PHP expert):
if ( $file_loc != NULL ) {
if ( file_exists($file_loc)
It's not always installed. From the documentation:
Zlib support in PHP is not enabled by default. You will need to configure PHP --with-zlib[=DIR]
The Windows version of PHP has built-in support for this extension. You do not need to load any additional extensions in order to use these functions.
edit: Since this is the accepted answer still, I edited it to add the function suggested as replacement.
function gzdecode($data) {
return gzinflate(substr($data,10,-8));
}