View Full Version : Real Time Seconds Disply in PHP
nobody
May 19th, 2003, 07:19 PM
I was just wondering how you would display secondsin real time through PHP
Right now I have this code
print date("H.i.s")
any clue as to what to do would be awesomeful
Jubba
May 19th, 2003, 07:22 PM
no. PHP gets the servers time. You would use javascript for that... unless I misunderstood...
nobody
May 19th, 2003, 07:25 PM
I think you misunderstood
When you load the page it just says 15.23.01
I want the "01" to actually be changing as the seconds pass.. if its not possible with php just let me know, cuz I don't want to use javascript cuz this is just me learning php slowly
Jubba
May 19th, 2003, 07:26 PM
you would have to refresh the page each second and that wouldn't make any sense so no. PHP pages are called from the server and they are only called once. They can't do real-time like that.
nobody
May 19th, 2003, 07:28 PM
okie dokie smokie
thank you:beam:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.