title: Google maps xml result save to file
body: <p>I am trying to save the xml results from google api into the file but from some reasons it doesen't work even if I want to display it on the screen. Any ideas?</p>
  
  <pre><code>&lt;?php
  $url ="http://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&amp;sensor=false";
  
  if (file_exists($url)) {
      $xml = simplexml_load_file($url);
       print_r($xml); #  &lt;-- Display in browser
  } else {
      exit('Failed!');
  }
  ?&gt;
  </code></pre>