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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
-=- Mike Flynn - Burlington, VT -=-
[EMAIL PROTECTED] http://www.mikeflynn.net/ * Give blood *
...maintaining lawns, watching televised sports, birthing
children, listening to Top 40 music, and collecting
stuffed animals...
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]