I want to display the time and date on my website in real-time, and so far I got the time to display, but it's static server time. How do I get it so that it actually scrolls by without the visitor having to refresh the page? This is what I have so far: ////////////// //index.php // ////////////// ///////////////////////////////////////////////////////////////////////////////////// // // //SHOULD THESE SCRIPT REFERENCES //BE HERE? ARE THEY THE RIGHT ONES? //DO I NEED MORE TO MAKE IT WORK? ///////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////// "; // ///////////////////////////////////////// echo "
";// echo $msg; // HERE'S WHERE THE TIME IS DISPLAYED, BUT IT'S JUST STATIC SERVER TIME echo "
"; // AT THE STROKE OF MIDNIGHT I WANT THE DAY TO SCROLL OVER WITHOUT VISITOR HAVING TO REFRESH ////////////////////////// I WANT IT TO APPEAR JUST LIKE YOU'RE LOOKING AT A DIGITAL WATCH echo ""; echo "; ?> ///////////////// //datetime.php // ///////////////// You were here on " . $daymsg . ", " . $monthmsg . " " . $datemsg . ", " . $yearmsg . " at " . $timemsg . ":" . $minmsg . ":" . $secmsg . " " . $ampmmsg . " " . $mlscmsg . ""; ?> THE CLOCK OUTPUT CAN BE SEEN ON http://funkyfaucet.tk if anyone knows how to make this appear in the browser as an actual clock, with seconds, minutes, days, etc. scrolling in real time, please contact "funkmaster" on peerbet.org