" ...", " ..."
, , . , , (. Pentium10 ). , ZIP /. , ZIP, .
ZIP ( sourceforge):
"zip code", "state abbreviation", "latitude", "longitude", "city", "state"
"35004", "AL", " 33.606379", " -86.50249", "Moody", "Alabama"
"35005", "AL", " 33.592585", " -86.95969", "Adamsville", "Alabama"
"35006", "AL", " 33.451714", " -87.23957", "Adger", "Alabama"
$zipLine = lookup($ZIP);
if($zipLine) {
$fields = explode(", ", $zipLine);
$city = $fields[4];
$state = $fields[5];
} else {
die "$ZIP not found";
}
If you just play with text in PHP, that’s all you need. But if you have a database application, you would do everything in SQL. More detailed information about your application may be caused by more detailed answers.
source
share