How can I query a particular website with some fields and get the results to my webpage using php?
Let’s say website xyz.com will give you the name of the city if you give them the zipcode. How can I achieve this easliy in php? Any code snap shot will be great.
If I understand what you mean (You want to submit a query to a site and get the result back for processing and such?), you can use cURL.
Here is an example:
You can grab the Lat/Long from this site with some regexp like this:
Just put that after the curl_close() function. That will return something like this (numbers changed):