Whois sorgusu yapılan siteden api ile bilgi çekmekteyim çekilen bilgide ip gösterimi yoktu onu yaptım fakat server'ın hangi işletim sistemi olduğunu yazdıramadım, sorgu yapılan host değilde kendi hostumun bilgisi geliyor doğal olarak, formdan gelen bilgiyi değişkene atadım fakat gerisini yapamadım, bunu nasıl yapabilirim.
$ip = gethostbyname("$whoisRecord->domainName"); (burası çalışıyor)
$server=$_SERVER["SERVER_SOFTWARE"]; ( bu kısımdaki olayı çözemedim, kendi hostumun bilgisini gösteriyor)
echo $ip.$server;
Server Bilgi Alma Hakkında
5
●587
- 18-10-2012, 20:58:12Kimlik doğrulama veya yönetimden onay bekliyor.$_SERVER[] çalıştığı serverin bilgisini verir. Başka bir domainin bilgisini göstermek için, ya sağladığınız apide o bilgisiyi vermeli, ya da siz o serverdan istekde bulunup header bilgilerinden almalısınız, tabii server bilgisini veriyorsa.Subaro adlı üyeden alıntı: mesajı görüntüle
- 19-10-2012, 09:53:02Çalışmadı dostum, herhangi bir çıktı yok, api aldığım yerdede server bilgisi yok.MaviTm adlı üyeden alıntı: mesajı görüntüle
- 20-10-2012, 13:47:19Subaro adlı üyeden alıntı: mesajı görüntüle
$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 )