How to enable gzip compression using PHP Simple HTML DOM Parser
- by brant
I have tried a few things to enable gzip compression using PHP Simple HTML DOM Parser but nothing has seemed to work thus far. Using ini_set I've manged to change the user agent, so I figured it might be possible to also enable gzip compression?
include("simpdom/simple_html_dom.php");
ini_set('zlib.output_compression', 'On');
$url =…