PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
winsonlee
Forum Commoner
Posts: 76 Joined: Thu Dec 11, 2003 8:49 pm
Post
by winsonlee » Wed May 19, 2004 2:01 am
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]
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed May 19, 2004 2:30 am
the remote time? or the server's time? server time is [php_man]time[/php_man]
maqmus
Forum Commoner
Posts: 30 Joined: Mon Mar 08, 2004 1:10 pm
Post
by maqmus » Wed May 19, 2004 3:23 am
PHP will give you the local server time. If you want your local machine time (your PC) you need javascript.
Look at
this .