PHPCow Help

Full Version: Run php script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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???
Do it through htaccess if your php is not compiled as cgi. WSOD (white screen of death) is very mysterious many a times and perhaps could be real frustrating to deal with even if you have access to error logs
yep, .htaccess worked better thanks!
Reference URL's