Ver Mensaje Individual
  #11 (permalink)  
Antiguo 20/05/2011, 12:14
obedabdias
 
Fecha de Ingreso: febrero-2009
Mensajes: 199
Antigüedad: 15 años, 3 meses
Puntos: 3
Respuesta: saber fecha y hora de internet

Cita:
Iniciado por stramin Ver Mensaje
BUENA IDEA!!!

mira, hice este, seguro que te sirve:

Código PHP:
<?php
$time
=file_get_contents('http://json-time.appspot.com/time.json?tz=GMT');
$H=substr($time,strpos($time,'"hour": ')+8);$H=substr($H,0,strpos($H,","));
$M=substr($time,strpos($time,'"minute": ')+10);$M=substr($M,0,strpos($M,"\n"));
$S=substr($time,strpos($time,'"second": ')+10);$S=substr($S,0,strpos($S,","));
echo 
"$H:$M:$S";
?>
Gracias si me sirvio y funciona muy bien.........

hice algo parecido, hice un include desde un servidor web de m propiedad y funciono a la perfeccion... gracias....


Código PHP:
include('http://servidorweb/hora.php'); 
y ahi llamo mis variables de hora,

Muchas gracias por su ayuda