Administrators Nathan Posted July 16, 2014 Administrators Posted July 16, 2014 What's the best method to pull data from this page? I want to grab different details and insert into my database using PHP. I assume I have to do something with CURL?http://www.zillow.com/webservice/GetDeepSearchResults.htm?&zws-id=REDACTED&address=1016+Redwood+Lane&citystatezip=Liberty%2C+Missouri+64068 Quote
Administrators Nathan Posted July 16, 2014 Author Administrators Posted July 16, 2014 Got it done with file_get_contents command. Example: <?php $xml=file_get_contents("http://www.zillow.com/webservice/GetDeepSearchResults.htm?&zws-id=REDACTED&address=1016+Redwood+Lane&citystatezip=Liberty%2C+Missouri+64068"); $xml = simplexml_load_string($xml); $totalRooms=$xml->response->results->result->totalRooms; echo $totalRooms; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.