Getting the current date and time.

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

Post Reply
winsonlee
Forum Commoner
Posts: 76
Joined: Thu Dec 11, 2003 8:49 pm

Getting the current date and time.

Post 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]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the remote time? or the server's time? server time is [php_man]time[/php_man]
User avatar
maqmus
Forum Commoner
Posts: 30
Joined: Mon Mar 08, 2004 1:10 pm

Post 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.
Post Reply