title: Geolocation with PHP
body: <p>Is there a way to get <code>lat/long</code> into <code>PHP</code> in a single file solution? Normally using <code>JS</code> I would use this in a pure <code>JS</code> sulution, but now I need the values in <code>PHP</code> variables:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function(){
      if (navigator.geolocation) {
          navigator.geolocation.getCurrentPosition(showLocation);
      } else {
          $('#location').html('Geolocation is not supported by this browser.');
      }
  });
  function showLocation(position) {
      var latitude = position.coords.latitude;
      var longitude = position.coords.longitude;
      return latitude;
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I need to get the <code>lat/lon</code>g vars into <code>PHP</code> without using an <code>AJAX</code> post into a url: xxx.php type of sulution. Single file only. Any ideas on a clean way to execute this anyone?</p>
  
  <p>BTW- If I write them into cookies this only works if I reload the doc. :-(</p>
  
  <p>Thanks!</p>