[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Converting current server time to a variable with PHP

Posted on 2006-07-15
4
Medium Priority
?
148 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 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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 …
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…
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.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

656 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