?
Solved

Converting current server time to a variable with PHP

Posted on 2006-07-15
4
Medium Priority
?
152 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
  • 2
  • 2
4 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 1000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
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…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

807 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