Converting current server time to a variable with PHP

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.


Who is Participating?
Jason C. LevineConnect With a Mentor No oneCommented:
Hi hep516,

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

and if that isn't quite what you want, the rest of the functions are on the left of the page.
hep516Author Commented:
Now I just need to convert that to something thats readable by a human.

Thanks for the link!


hep516Author Commented:
Figured it out.

Thanks alot Jason
Jason C. LevineNo oneCommented:
No problem.  The pages usually have code examples to convert things.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.