Page 1 of 1

Getting the current date and time.

Posted: Wed May 19, 2004 2:01 am
by winsonlee
How can i get the current pc time using php code ?

I want the time and date to store in a series of number eg, 1084866911[/mysql_man]

Posted: Wed May 19, 2004 2:30 am
by feyd
the remote time? or the server's time? server time is [php_man]time[/php_man]

Posted: Wed May 19, 2004 3:23 am
by maqmus
PHP will give you the local server time. If you want your local machine time (your PC) you need javascript.

Look at this.