Guest

test.php

By: a guest on Dec 11th, 2010  |  syntax: PHP  |  size: 0.40 KB  |  hits: 147  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. <html>
  2. <?
  3. $latitude = $_GET['lat'];
  4. $longitude = $_GET['long'];
  5. $latf = "mylattitude.txt";
  6. $longf = "mylongitude.txt";
  7. $latfh = fopen($latf, 'w') or die("can't open file");
  8. fwrite($latfh, $latitude);
  9. fclose($latfh);
  10. $longfh = fopen($longf, 'w') or die("can't open file");
  11. fwrite($longfh, $longitude);
  12. fclose($longfh);
  13. echo "var mylocation = new google.maps.LatLng($latitude, $longitude);";
  14. ?>
  15. </html>