Last active
February 22, 2016 20:20
-
-
Save cosme12/a751c48c25a34f25b885 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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