title: Set Javascript time with php server time?
body: <p>I have a situation where I want the server time to be displayed on a web page.
  At present I keep it simple and just do this</p>
  
  <pre><code>&lt;?php 
  $CTIME=date ("g:i a");
  ?&gt;
  </code></pre>
  
  <p>This works great- except I would prefer it if it updated by itself without the need to refresh the page.  I was thinking perhaps there is a way I can set the javascript time function with the time from a php script- but I've got no idea as to how I could go about doing this.</p>
  
  <p>Perhaps I'm thinking about this wrong... maybe there is another solutions I'm not thinking of, Any ideas ??</p>