I am not asking for an online tool. I’m also not asking how to turn on or turn off gzip.
What I want to know, is how, within my php, that I can check to see if gzip will encode the current buffer or not.
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.
I’m not 100% sure what you mean by
gzip will encode the current bufferbut i assume you mean “compress the output before sending it”Should you be talking about
ob_*functions and output streams there isob_get_statusbut afaik you can’t check if that was started withob_gzhandler()or not. Your application would have to track that. But zlib compression is preferred anyways