Is (function_exists('ob_gzhandler') && ini_get('zlib.output_compression')) enough ?
I want to check if the host is serving compressed pages within one of the pages 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For PHP, they’ll do fine.
However, if your referring to compression of pages back to clients, you’ll also need to check it’s enabled in apache (assuming your using apache you’ll need the mod_gzip.c OR mod_deflate.c modules).
For instance:
# httpd -l(apache 2)Ive also seen mention of needing to implement .htaccess overrides in the past: