Re: also... a real time clock (no forms)
| From: | Mike Flynn | Date: | Fri, 21 Sep 2001 15:00:09 +0000 |
| Subject: | Re: also... a real time clock (no forms) | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-9453@lists.php.net to get a copy of this message | ||
You can't have a dynamic clock on a webpage using a server-side script like PHP. That requires a client-side script or applet. What you can have PHP do is show the current time every time a page is reloaded. That's easy enough: Just use the date() function somewhere. And what the other guy that replied to you mentioned, using the meta tag to refresh the page every 60 seconds, that will simulate it but isn't guaranteed to work perfectly on all browsers.
PHP is a server-side script and generates code before the user gets the page. It doesn't alter the page once the user has it, like Javascript does.
-Mike
At 03:16 PM 9/20/2001 +1200, you wrote:
hello again, can someone please help me to make a realtime clock in PHP not using forms only plain text that updates when the time changes, i.e. every minute etc... thank you again =) -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
-=- Mike Flynn - Burlington, VT -=-mike@mikeflynn.net http://www.mikeflynn.net/ * Give blood * ...maintaining lawns, watching televised sports, birthing children, listening to Top 40 music, and collecting stuffed animals...