Solved

Converting current server time to a variable with PHP

Posted on 2006-07-15
4
137 Views
Last Modified: 2010-04-25
Hey guys,

I was wondering how I could access the server time with php. I want to get it into a variable so I can time stamp messages being sent user to user.


Thanks,
Matt

0
Comment
Question by:hep516
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 250 total points
ID: 17117946
Hi hep516,

There are ton of functions in PHP to deal with time.  Start here:

http://us3.php.net/time

and if that isn't quite what you want, the rest of the functions are on the left of the page.
0
 

Author Comment

by:hep516
ID: 17118120
Now I just need to convert that to something thats readable by a human.

Thanks for the link!

Matt

0
 

Author Comment

by:hep516
ID: 17118128
Figured it out.

Thanks alot Jason
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17118182
No problem.  The php.net pages usually have code examples to convert things.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Center Table on Web Page 6 390
Can't get  my Web page's sublist  to display on Ipad or Iphone 8 683
Multi Step Form using jQuery 11 959
Coldfusion CFMESSAGEBOX Passing Variables 6 139
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question