Como mostrá fecha y hora en php
Hola experto, si pudiera ayudarme con esto, lo que pasa es que si muestra la fecha pero me da un warnig, use el siguiente código:
<?
$fecha= date(d."-".m."-".Y);
echo $fecha;
?>
pero me muestra:
Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\AppServ\www\PHP\fecha.php on line 2
13-08-2009
<?
$fecha= date(d."-".m."-".Y);
echo $fecha;
?>
pero me muestra:
Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for '-5.0/DST' instead in C:\AppServ\www\PHP\fecha.php on line 2
13-08-2009
1 respuesta
Respuesta de jda1586
1