This is a simple Ajax Server-side Script Example. In the code below shows how to write the server-side code in PHP as "time.php".
<?php header("Expires: Fri, 20 Nov 2009 05:30:00 GMT"); header("Cache-Control: no-cache"); echo(date("G:i:s",time())); ?>