06-30-2008, 02:31 AM
Hi everyone
i'm trying to run the following code for each page.
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
What i did is create a new function, added that code and then inserted that function into the Schema page. But everytime I do this I just get a blank white screen with no source code.
What i'm trying to do is utilise gzip. My server supports it and if I create a static file (abcdef.php) and add that code then it works perfect.
Any thoughts? Has anyone else implemented gzip with PHPCOW???
i'm trying to run the following code for each page.
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
What i did is create a new function, added that code and then inserted that function into the Schema page. But everytime I do this I just get a blank white screen with no source code.
What i'm trying to do is utilise gzip. My server supports it and if I create a static file (abcdef.php) and add that code then it works perfect.
Any thoughts? Has anyone else implemented gzip with PHPCOW???