Page 1 of 1
Current TIME and DATE of the SERVER
Posted: Mon Aug 12, 2002 8:04 pm
by rexmor
Using PHP, how to get the Current TIME and DATE of the SERVER?
Thanks,
rex
Posted: Mon Aug 12, 2002 8:10 pm
by volka
Posted: Mon Aug 12, 2002 8:23 pm
by rexmor
I'm sorry I'm new to PHP
I do it like this...
<?php
echo(time());
?>
result is:
1029202885
Please correct me..
thanks.
Posted: Mon Aug 12, 2002 9:36 pm
by volka
blue text in this forum is a link
time() takes you to the online manual entry for the time()-function
Description
int time ( void)
Returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).
probably you're looking for
date
make use of the manual as often as possible and see if there's something in the user contributed notes that helps you

Posted: Mon Aug 12, 2002 9:49 pm
by rexmor
Thanks anyone here... you really helped people around... thanks for the link but anyway I been there in just a while... so it's here what I want... it's a simple as this...
$today = date("F j, Y, g:i:s a");
Thanks volka and this forum...
I'll be back ...
rex