Subaro adlı üyeden alıntı: mesajı görüntüle
Çalışmadı dostum, herhangi bir çıktı yok, api aldığım yerdede server bilgisi yok.
$tut = get_headers("http://www.gokhanbaran.com");
    echo "<pre>";
        print_r($tut);
    echo "</pre>";
Çıktı
Array
(
    [0] => HTTP/1.1 302 Found
    [1] => Date: Sat, 20 Oct 2012 10:46:15 GMT
    [2] => Server: Apache/2.2.3 (Red Hat)
    [3] => X-Powered-By: PHP/5.3.16
    [4] => Set-Cookie: gvc=909vr982755759131584; expires=Thu, 19-Oct-2017 10:46:15 GMT; path=/; domain=www.gokhanbaran.com; httponly
    [5] => Location: http://rk400.com/?sov=rook-gokhanbaran.com
    [6] => Vary: Accept-Encoding,User-Agent
    [7] => Content-Length: 0
    [8] => Connection: close
    [9] => Content-Type: text/html; charset=UTF-8
    [10] => HTTP/1.1 200 OK
    [11] => Date: Sat, 20 Oct 2012 10:46:10 GMT
    [12] => Server: Apache/2.2.22 (Win64) PHP/5.3.13
    [13] => X-Powered-By: PHP/5.3.13
    [14] => Content-Length: 5911
    [15] => Connection: close
    [16] => Content-Type: text/html
)