Quantcast
Channel: Coding Archives - BinaryTides
Viewing all articles
Browse latest Browse all 21

Php – How to fetch gzipped content over HTTP with file_get_contents

$
0
0

The file_get_contents function is often used to quickly fetch a http url or resource. Usage is very simple and appears like this $content = file_get_contents('http://www.google.com/'); However the file_get_contents does not get the contents compressed. It requests the server to send everything in plain text format. Most websites are capable of serving compressed content, if they... Read More »

The post Php – How to fetch gzipped content over HTTP with file_get_contents appeared first on BinaryTides.


Viewing all articles
Browse latest Browse all 21

Trending Articles