Write a script to detect whether or not the server gzips pages via php.ini and if it doesn't, enable it for the duration of the page's generation?
Announcement
Collapse
No announcement yet.
How would I...
Collapse
X
-
It doesn't work. ^_^;;
Edit: I got it to work. Here is the code if anyone is interested:
PHP Code:if (!ini_get ('zlib.output_compression')){
if (ini_get ('output_handler')!='ob_gzhandler'){
ob_start(array('ob_gzhandler',1));
}}
Last edited by Shining Arcanine; Tue 2 Sep '03, 2:09pm.
Comment
Related Topics
Collapse
-
by 2Luke2I'm trying to create a module that will run a php script. below is my php script. I guess I just don't know well enough how to make that run on the forums. I tried to put the raw data in a static html...
-
Channel: Support Issues & Questions
Wed 13 Feb '13, 7:08am -
Comment