I am trying to use [B]Zillow API [/B] But I dont know how to make the call. They say tomake the call with [B]http://www.zillow.com/webservice/GetZestimate.htm?zws-id=<ZWSID>&zpid=48749425[/B]
but i dont know if i have to use a $variable = http://www.zillow.com/webservice/GetZestimate.htm?zws-id=<ZWSID>&zpid=48749425
@NogDogJul 22.2009 — #If your PHP config has allow_url_fopen enabled, you could just do a file_get_contents() on the url: [code=php] $result = file_get_contents('http://blah/blah/blah/blah...'); [/code] If, however, that is not feasible, you might have to use the [url=http://php.net/curl]cURL extension[/url].
@SodbusterAug 05.2009 — #The API call's output is XML, so using string or regex functions to extract the data would be doing it the hard way.
The output you're echoing is not the complete server output; change [I]echo $result[/I] to [I]echo nl2br(htmlspecialchars($result))[/I] to see the XML document.
@NogDogAug 05.2009 — #It the returned value is XML, you could use the [url=http://php.net/simplexml]SimpleXML[/url] or the [url=http://php.net/dom]DOM[/url] extensions to parse it.