hwg-basics archives | Mar 2000 | new search | results | previous | next |
Re: Time script neededby "Kara Shallenberg" <kara(at)nyip.net> |
|
if your server will let you use PHP you can use this code: <?php print (date (g:i a)); ?> that'll give you the time in this format : "4:35 pm" but of course there are many other format options... name your page "whatever.php" (your html will still work just fine) and when it loads into the client's browser the php will add the current server time into the html... I'm not explaining this well. :-) you can go to www.php.net and read the time and date function section of the online manual. hmm, but this won't update in real time; only if you hit reload... Kara Shallenberg kara(at)nyip.net -------------- "There is no spoon..." >>I have been on the lookout for a small script to show the time as part of >> the text on a page ...there are lots of scripts around that will show the >> time in a text box but I have yet to find one that will actually become part >> of the text of a page and update in real time. I would like the time also to >> come from my server (most of them appear to use the surfers computer time). >> Is this possible?
HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA