Forum Moderators: coopster
really goofy page load on initial "home page" load, after deleting all cached temp files and rebooting computer to test clean load - page takes over 2 minutes to load subsequent page loads form that slow loading page are in a blink of an eye...
at the top of my php file i have this:
<?php ini_set('zlib.output_compression_level', 3);
ob_start('ob_gzhandler');
also - subsequent page loads sometimes do not load all images....
suggestions?
many thanks
PS for url - sticky mail me
it is my understanding i am not usig "both"
rather the first line is setting the "level of compression" the 2nd line is enabling...
am i confused? is there some other way to do this? i have noticed on occasions the page is not rendered - only the gzip gode is displayed - and once in a great while some images do not load...
thoughts?
ob_start(array('ob_gzhandler',9));
Does not work. The output size isn’t affected at all, stays the same.
ob_gzhandler compression level use zlib.output_compression_level, which is -1 per default, level 6.
To change the compression level on the fly, simply use ini_set:
<?php
ini_set('zlib.output_compression_level', 1);
ob_start('ob_gzhandler');
echo 'This is compressed at level 1';
?>
excerpt from [us4.php.net...]