I am developing my website using PHP Codeigniter Framework. I want to display my webserver\'s time as well as client\'s machine time on some of my web pages. I
Funny enough, while looking for information about Codeigniter to see if I could answer your question or not, I found a runnable that does exactly what you need:
http://runnable.com/UXczcazDrMMiAAGl/how-to-do-ajax-in-codeigniter-for-php
In short, the above script uses Codeigniter and jQuery to ask the server for its current time (via AJAX).
Happy coding.