
22/10/2006, 14:19
|
Usuario no validado | | Fecha de Ingreso: diciembre-2001 Ubicación: MERIDA
Mensajes: 498
Antigüedad: 23 años, 2 meses Puntos: 2 | |
... Hola !!!
También tengo este otro código que también me funciona, pero tiene el mismo problema de la hora española =(
<?php
$ip=$_SERVER['REMOTE_ADDR'];
setlocale(LC_ALL,'spanish');
$zone=3600*2 ;
$fechahora=gmdate("j/m/y H:i:s", time() + $zone);
$datos=$_POST;
$todo="<b>Fecha: </b>".$fechahora."<br>";
$todo=$todo."<b>Mensaje: </b>".$datos['mensaje']."<br><b>Correo: </b>".$datos['correo']."<br>";
echo "<h2><center>Mensaje recibido</center></h2><br>".$todo;
$todo=$todo."<b>IP: </b>".$ip."<hr>";
$archi = 'ver10b.htm';
$total = $todo.file_get_contents($archi);
//file_put_contents($archi, $total) ;
$auxi = fopen($archi, 'w');
fwrite($auxi, $total);
fclose($auxi);
?>
Qué cambios hago? |