Is there a way to check if my hosting provider has mod_gzip enabled? It’s not mentioned in any info on the web site, nor there is a forum to contact other people about this problem.
Thanks.
Is there a way to check if my hosting provider has mod_gzip enabled? It’s
Share
You can check that with either PHP’s
apache_get_modulesorphpinfo.If you want to compress your output, you might want to try the output buffer handler
ob_gzhandler. It automatically determines what type of content encoding the browser will accept (“gzip”, “deflate” or none at all) and will return its output accordingly. Just putob_start('ob_gzhandler')at the start of your script file (before anything is put out) and it does the rest.Or you simply use Apache’s mod_deflate that even can compress static files that are directly passed through to the client.