Possible Duplicate:
How to sync a javascript countdown with server time
How can I get the to calculate the difference between the server side time and the client side time and then display it in my view , which is a PHP page .
Let me make this a bit clear. I have a time data for a particular cricket match to start which is stored in the database . Now, I want to display the difference between this time and the time in the client browser in my view which is a PHP page. I can understand that I need to write a javascript function for this , but how can I call this function from my PHP code ,and again I have to display the difference in my view.
I am confused about this.