I want to print out the contents of HTTP response headers. Here is the code:
$result = file_get_contents('http://www.google.com/');
print_r(json_decode($result, true));
The allow_url_fopen is 'On' in php.ini. I have tried the same with the curl extension of Php. The code was right but it printed nothing.Can anyone explain me why is it so?