title: Javascript clock with server time PHP
body: <p>I struggling with server time. I need timer on my website (count every second) but not client side time but server. But my script operating only with client time:</p>
  
  <pre><code>&lt;script&gt; 
  setInterval(function() {
  var d = new Date();
      $('#timer').text((d.getHours() +':' + d.getMinutes() + ':' + d.getSeconds() ));
  }, 1000);
  &lt;/script&gt; 
  
  &lt;label id="timer"&gt;&lt;/label&gt;
  </code></pre>
  
  <p>Script above work fine.
  How I can integrate server time and update very one second?</p>