- get_headers: documentation ( source)
- var_dump: documentation ( source)
<?php
$testURL = 'http://validator.w3.org/check?uri=http://forums.phpfreaks.com/topic/169441-get-headers-problems/';
$headers = get_headers($testURL, 1);
echo $headers;
var_dump($headers);
?>