I\'m trying to receive a gzip\'ed version of a page through file_get_contents in php 5.2.9
I was able to do it using fopen with the following code:
Have you tried this?
$content = file_get_contents('http://example.com',false,$context);
Try using 'compress.zlib://http://example.com'
Answer taken from here: How can I read GZIP-ed response from Stackoverflow API in PHP?