English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

site wanting to parse from

http://brainoff.com/geocoder/rest/?city=Santa+Cruz,CA,US

please help :/

2007-01-24 20:47:02 · 1 answers · asked by thelastryan 3 in Computers & Internet Programming & Design

1 answers

Please clarify. What XML extention(s) do you have available on your PHP installation?

Alternatively, here's an EXTREMELY ugly hack that does not require any XML extention:

$data = file ('http://brainoff.com/geocoder/rest/?city=Santa+Cruz,CA,US');
foreach ($data as $line) {
if (strpos ($line, '') !== false) {
$long = strip_tags (trim ($line));
}
if (strpos ($line, '') !== false) {
$lat = strip_tags (trim ($line));
}
}

2007-01-25 11:22:43 · answer #1 · answered by NC 7 · 1 0

fedest.com, questions and answers