Menu
Hi,
anybody knows server clock script to get time from server no need to refrsh the page as it will automatically uodated from script when time changes
from javascript its quite easy how to do from PHP to get server time
<script language=”JavaScript”>
function show(){
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
if (hours<=9)
hours=”0″+ hours
if (minutes<=9)
minutes=”0″+minutes
document.tstest.clock.value=hours+”:”+minutes
setTimeout(“show()”,1000)
}
show()
</script>
<input type=”text” class=”button” size=”1″ name=”clock”>
how to get from PHP.
Thanks