-1
파일에 Google API의 xml 결과를 저장하려고하지만 화면에 표시하려는 경우에도 작동하지 않습니다. 어떤 아이디어?Google지도 xml 결과를 파일로 저장
<?php
$url ="http://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false";
if (file_exists($url)) {
$xml = simplexml_load_file($url);
print_r($xml); # <-- Display in browser
} else {
exit('Failed!');
}
?>