<?php $ip=$_GET['ip']; $curl_oturumu =curl_init("http://www.ip-adress.com/"); curl_setopt($curl_oturumu, CURLOPT_HEADER, 0); curl_setopt($curl_oturumu, CURLOPT_POSTFIELDS, "QRY=$ip"); curl_setopt($curl_oturumu, CURLOPT_RETURNTRANSFER ,1); curl_setopt($curl_oturumu, CURLOPT_FOLLOWLOCATION ,1); $output= curl_exec($curl_oturumu); curl_close($curl_oturumu); $desc = '#IP Location:(.*?)</b>#si'; preg_match_all($desc,$output,$ddesc); $sonuc = $ddesc[0][0]; print_r(strip_tags($sonuc)); ?>