I have one problem regarding CURL. I am trying send CURL request to http://whatismyipaddress.com
so.. is there any way to get curl response in array ? because right now it display the HTML Page but i want the response in array.
İşte benim kod ...
$ipAdd = '121.101.152.170';
$ch = curl_init("http://whatismyipaddress.com/ip/".$ipAdd);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
curl_setopt($ch, CURLOPT_HEADER,0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
Yani .. Şu anda ben detay HTML sayfası alıyorum ama ben dışarı dizi veya XML olarak koymak istiyorum.