TheJeffsta
Aug 27 2005, 04:19 AM
| | I am just wondering how to get the current time on a weboage. Ive got one that gets the info from the viewers computer, but i want one that gets the time from a server that has the current time and all of that. Can someone help me out with the code?
I am currently using Microsoft Frontpage 2003. I also have Dreamweaver MX 2004 if its easier in that. |
Reply
szupie
Aug 27 2005, 03:23 PM
You can search something like "javascript display server time" on Google, and that should give you a lot of scripts. This is one of the scripts I found. If you want to write your own script, you can study the scripts you found to see how they work.
Reply
Houdini
Aug 27 2005, 07:12 PM
That is easy with php and you could mix it into an html file (astahost supports PHP so here's the big program. To see it work on your server just name the below tiny file something like time.php and put it on your astahost server maybe in the root and then just typer http://whatever.astahost.com/time.php and you will see the time and if you need more about how to use it or include it in a header and or footer thenit could be displayed in the top and bottom of your pages. Here's the tiny code CODE <?php $time=date("g:i:s;a"); echo ($time); ?> Hope that helps.
Reply
yordan
Aug 27 2005, 08:52 PM
thanks, Houdini, it works. You made me write down my first php program. (Sorry, you explained me how to cut-and-paste into my first php program). It's nice to see something new working at first time.
Reply
Houdini
Aug 27 2005, 10:21 PM
You are welcome, it was simple that is what I love about PHP it can do some pretty neat stuuf with little effort. All you need is a goo reference on the date funtions, then you can format your time anyway you want, you could also get more sophisticated and have it refresh every second but that is just a little much. Glad it helped you out!
Reply
koolio
Aug 30 2005, 11:24 PM
The only disadvantage of the above script is that it displays the time at the moment of generation and it doesn't change as time goes by as in a real clock. So I searched for a script which displays time continuously. Check this. http://www.shearersoftware.com/software/we...source-php.html
Reply
TheJeffsta
Aug 31 2005, 07:20 AM
OMG, that code is soo big. I prefer the one that i have on my site at the moment. http://www.thejeffsta.astahost.com/The only downside is that is takes about 5-10 seconds to load. Oh and it could have done with a better layout (appearance).
Reply
Similar Topics
Keywords : Site- Does This Site Mean Anything To Us…i Don’t Know U Tell Me?
- (4)
- Visit My Site, Internet Stops For A While
- (8)
I have this strange problem. Everytime I visit my site (http://jovolka.wutske.astahost.com), I
can't surf for 30-60sec. and my site never loads it's pictures. I have no idea what I could
be. My firewall is set to 'enable all', so that can't be the problem. I'm using
opera (don't know if it happens in IE, gonna check that out later). Anybody knows what the
problem is ??? No one else seem to have the problem, so plz help me, because I can't administer
my site anymore /mellow.gif' border='0' style='vertical-align:middle' alt='mellow.gif...
How To Enable My Site For Credit Card Payments.
- Want to use my site to transact online using credit crads. (4)
Hi folks, I am planing to accept credit card payment on my site. the site would be developed in
php. I want to know how I can do that. are there any pre existing libraries that enable to achieve
this. if so what are these and how do I use them. thanks in anticipation. ...
Site Namer
- Need a name for your site? (7)
First, choose the SECOND letter of you FIRST name: A-mazing B-right C-ute D-azzling E-xtreme
F-abulous G-orgeous H-appy I-cy J-azzy K-ewl L-uxurious M-enacing N-ewbie O-bvious P-etite Q-uirky
R-ebelious S-hadow T-ruthful U-ltimate V-ictorious W-onderful X-citing Y-amming? Z-ipping Now, pick
something that appeals to you most: Kids Boys Death Souls Candy Designs or graphics Blogger Girl
Comedy -----Moved from to . I would have moved this to the lobby since this is just a little
fun "tip", but... perhaps I felt like being nice.-----szupie ...
10 Gb Data Storage For Free!
- Amazing site for online data storage (54)
Here is a cool site i could found which has amazing facility to store upto 10 GB data online! I can
also send any file through email to any person for free! Isnt sounds coooool?? here is the url
http://www.streamload.com Enjoy... /smile.gif' border='0' style='vertical-align:middle'
alt='smile.gif' /> ...
Know Of Any Good Free Ftp Host Site?
- ... (8)
does ne1 know any free (ftp) host site where i could upload my things and other ppl could download?
been searching for weeks.... with no success /blink.gif' border='0' style='vertical-align:middle'
alt='blink.gif' /> ...
Does Anyone Knows How Does This Site Work
- (6)
Hi, I'm really curious how does sites like vidjacked.com or videodownloader.net copy
streaming video and puts it in the download section so you could download ? do they you some kind
of script or coding like php or java to get the direct-link ? I really want to know cause I have
this site I really like but sites like vidjacked does not have a support on getting the direct link?
Please help Thanks!...
The Best Free File Hosting Site !
- Check This Out (6)
Hi, I found i nice site I really use this because it acts like a usb flash drive because your
the only one who can access it unlike rapidshare and megaupload I know your aksing for it and here
it is http://www.dropboks.com It is the most simplest of all file hosting sites you can upload
up to 50MB and 1GB storage a month and unlimited bandwidth so you can get most of it check it out
!!!...
Need Help To Install Live Web Cam On My Site
- i want webcam on my website (3)
do you know how i can show the video of my webcam on my website so that people visiting my website
can see the video. I want to be able to show constant video or just a picture that changes every
time you refresh the page....
Mofunzone.com
- This is a really goodo gaming site! (2)
I want to announce the mofunzone gaming website. This website has many schockwave games which you
don't need to download. You only have to click on the links which will automatically link to the
shockwave game. DON'T forget to download the newest shockwave player. This website also has a
good site interface. That means the graphics are good and the site has little bugs. I would give a
8.5 for this site. Have fun!!! /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
alt="biggrin.gif" />...
My Site Just Got Rooted.........
- there goes all my work...... (5)
ive been working for weeks on a site on qupis...... but afew days ago someone hacked it, there are
now porn sites all over my index.html file and im not very sure what else has happened.........my
forum DB is down i am truly screwed, cos the hacker made all the links on the site lead to porn
sites but still look like the old ones i have already recieved a few angry letters.... what can i
do? how do i shut down my hosting....i cant get into the damn thing my password was randomly
generated too..........
FPS Banana : The Site For Counterstrike Skins Etc.
- A great site for those looking to liven up their CS:S (2)
FPS Bananas is a great site for skins, mapes, downloads and news for Counterstrike and other game
players. The full list of games supported are: Counter-Strike Counter-Strike: Source Counter-Strike
2D Half-Life 2: Deathmatch Valve Steam Counter-Strike: Condition Zero General Half-Life 2 Day of
Defeat: Source Day of Defeat Battlefield 2 Garry's Mod Doom 3 Quake 4 First Encounter Assault
Recon Call of Duty 2 The best skins are making all your guns looking like bananas and your grenades
like small penguins! The rest are just for you to search, but I strongly recommend...
Facebook: School Connection Site
- (8)
Anyone in here that is a college student or high school student should sign up for
Facebook.com...this is a great site. i have reconnected with many of my friends and started talking
to them again.. i also had the opportunity to join party and such so that we can make new frieends
at school...overalll you guys should sign up....
A Site To Be Proud Of
- What is yours? (0)
~...
How To Install Invisionfree Forums To My Site?
- (15)
Well I need help like is there something I can download then upload to my site with it so I can make
the forums or do I simply just create an Invisionfree forums and post a link to it?...
On Site Forum
- know any good ones? (6)
Im looking for a forum that I can host on my server! I tried Simple Machines Forum but I cant get it
to work properly! When a new user wanted to join it asks for a confirmation code, with a graphic but
the graphic didn't appear. I tried re-uploading it as well as replacing the graphics files and
trying different prefixes. If anyone knows of another site that offers similar options please let
me know! Thanks...
How To Get Viewers To My Site ?
- ?? (11)
How can i get more viewers to my site ? which are the best ways... link exchange ? affiliate
programs ? and which ones ? please help me in this matter......
Finding Where A Site Is Hosted ?
- How to do it any service for that. (11)
I want to know where some web sites are hosted.Is there any site that will help me to do so ?...
Lissaexplains.com(htmlhelper Site For Newbies)
- (2)
www.lissaexplains.com This site is a very good html starter website. The girl who designed it
explains everthing so easily, that nearly everyone should understand. She gives lots of tips and
links to other sites. And she tells what software is good to use for making a website. She gives
script examples, and doesn't spam her own website full with useless stuff. Give it a try if
your a newb Go visit:www.lissaexplains.com!...
Php Script/tutorial Test Site Another Xisto Service Possibility
- (10)
http://www.trap17.com/forums/php-script-tu...ity-t41333.html Last couple of weeks I been having
this idea for another volunteer xisto service. We take php scripts from across the net, from
tutorial sites, download sites and what not and test them out to see if they actually work. Then
give them a rating of 1-5 1 being the script don't work and 5 being the script works like it
supposed to. If they do work we provide a live demo to it. Now The set up would go like this if
the script runs into problems we would post the problem through a news/comment system (like ...
How To Promote My Site?
- (10)
I was wondering if anyone has some ideas on how I could promote my website on the cheep. I am the
owner of a wonderful site called Yahoo! Coder’s Cookbook (www.ycoderscookbook). My goal with this
site is to provide informative information about Yahoo! Messenger and the protocol it uses. Unlike
many of the other Yahoo! sites out there, my site is geared toward the academic and open discussion
of Messenger. I have a few good articles that I have spend quite a bit of time composing and I will
have lots of new stuff coming soon. The problem is no one knows about it. I ...
Yourspins
- A music remixing site (0)
http://yourspins.com In case you have not heard of it: Your Spins is a online remixing community
where members can remix songs and other can comment. With artists such as Moby in on it at only the
BETA stage this could become a very popular site. I joined pretty much at the beginning. They have a
great site idea. You can download a program that plays and allows you to remix the songs offline. It
is called a Di player. Hence the file extension is .di It works in Windows Media Player. Although i
have had no luck with this method i have hardly ever had problems with the...
Get Your Site Listed In A Top Ranking Directory
- (4)
Oflate, I have got this link Hedir, The Human Edited Directory . It is a good directory that offers
a community review system. That is, your website will be listed in their directory, if it gets
sufficient recommendation from the Hedir Community. There are a lot of other FREE stuff in Hedir.
So, if you want your site to be reviewed and listed in a top ranking directory, you can check the
link....
Hosting Your Site From Home
- (5)
I recently bumped into a friend of mine who is hosting his web site from home. And he does not have
a static IP at home !!! How does this work 1) You take a dynamic IP service at home (DSL / Cable /
Forget Dial up). Set up a Computer to run all the time hosting your web application. What a beauty,
you can play around with your site any way you wish ! 2) Sign up with a Dynamic DNS service provider
who normally give the service for free. For example (www.dyndns.com) 3) Choose a domain name from
DNS provider and then attach your subdomain name to it. For example you can ch...
Gamespot.com: Gaming Site With Cool Features
- (6)
Take a look at gamespot.com. I use this site to keep in touch. find fun games to play for PC, Xbox,
PS2, PSP, GameCube, GBA, and more. I like the ranking system, reviews. You can find a lot
information about interesting games....
Here's A Site For Those Who Are Bored With ImDB
- A SITE FOR movie buffs! (1)
are you a flick fan who is a member of IMDB? Do you check IMDB's top 250? Does this
list annoy you in some ways? I suggest you check out a site http://www.ymdb.com this is not
internet's movie database but it's your database actually! Your Movie Database, the movie
community where you can create your list of favorite movies, discover other people's favorite
movies, discuss about movies and favorite lists, ... YMDb is free and fun ! ...
Mails From Your Site End Up As Spam? Ways To Try And Avoid It..
- (0)
are you another frustrated hapless webmaster with your mails getting lost in the reciever's bulk
folder? for me this is the biggest headache now. and if your site like mine depends on emailing as
a basic functionality of existence..you are simply doomed. writing to the email providers only fall
on deaf ears. all your hard work in conceiving and creating the site and getting it up and running
and then getting visitors to it - all get reduced to nothing in a second's methodical madness of
a heartless bot deciding your mail as spam. even mails from this forum of ou...
A Message To Visitors Who Use Ie
- PHP script to use on your site (8)
I found a very neat PHP script which will show a message to people who use IE only. It doesn't
show anything if you use any other browser /biggrin.gif" style="vertical-align:middle" emoid=":D"
border="0" alt="biggrin.gif" />. Here's the source. I've used it on my site already. If
anyone is interested to see it in action, just click on my sig and check it out in IE /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
Great Site Ranking In Google
- Great Site Ranking in Google (6)
Hey you guys, I just found this at buzzle.com, and thought it was really interesting. I suggest
anyone that would like to increase their rank in google should read it... Very neat stuff Smile....
Programmersheaven.com: Great Programming Site
- (6)
Whenever I need info about programming I always go to programmersheaven.com Probably a lot of you
already know this site but for the ones that dont know it CHECK IT OUT!!! It really helped me out
a couple of times. It also contains some example scripts....
Looking for clock, site
|
*SIMILAR VIDEOS*
Searching Video's for clock, site
|
advertisement
|
|