Skip to content

Instantly share code, notes, and snippets.

@cosme12
Last active February 22, 2016 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosme12/a751c48c25a34f25b885 to your computer and use it in GitHub Desktop.
Save cosme12/a751c48c25a34f25b885 to your computer and use it in GitHub Desktop.
<?php
/*
################################################
FECHA: 22/2/2016
CREADO POR: COSME-FULANITOS
AQUI ESTOY KIO4.COM
CONFIGURACION:
- enviar las coordenadas con el siguiente formato: -0.27907,-78.48124
EJEMPLO:
- http://kio4.com/ubicacion.php?coords=-0.27907,-78.48124
################################################
*/
$myfile = fopen("versitio.htm", "w") or die("Error al abrir el archivo!");
if(isset($_GET['coords'])){
$txt = '<font size=12><a href="http://maps.google.com/maps?q=loc:'.$_GET['coords'].'&t=k">Aquí estoy</a><br></font>';
fwrite($myfile, $txt);
echo 'Guardado con exito';
}
fclose($myfile);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment