displays time ,but not correct ?
Posted: Thu Mar 11, 2004 11:26 am
hello , im not a php man but i am trying to learn , i have a simple problem .i am displaying the time but its 1 hour behind ..
im not sure where the problem is ,since i really dont know much about php.
here is some generic code ..
as you can see all the date code but im not sure how to get it to display my time ,its displaying 1 hour behing ..and if i change the "GMT-0700"
it doesnt change a thing ..
thanks
im not sure where the problem is ,since i really dont know much about php.
here is some generic code ..
Code: Select all
<?php
extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
header("Expires: ".gmdate("D, d M Y H:i:s")."GMT-7000");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
?>
<?php
//
<?php
$username = str_replace ("\n"," ", $username);
$username = str_replace ("<", " ", $username);
$username = str_replace (">", " ", $username);
$username = stripslashes ($username);
$p=gmdate("d M H:i");
?>
&output=
<?php
$date = date( "H:i");it doesnt change a thing ..
thanks