Mourning the loss of our friend, WhitPhil.
Welcome to Tech Support Guy!
Read our
Welcome Guide
or take a minute to watch the video below!
Join
Tour
Login
Join for free!
Forgot your username or password?
Username
Password
Save?
Search
Home
Forums
Library
News
Store
Donate
Security & HJT
Software & Hardware
Operating Systems
Internet & Networking
General Tech
Community
Web Design & Development
Tag Cloud
access
audio
black screen
blue screen
boot
bsod
connection
crash
dell
desktop
drivers
dvd
email
error
excel
excel 2003
firefox
hard drive
hardware
hdmi
hijackthis
internet
keyboard
laptop
malware
monitor
motherboard
network
networking
outlook
problem
recovery
router
safe mode
screen
slow
sound
spyware
tdlwsp.dll
trojan
vba
video
virus
vista
vundo
windows
windows 7
windows vista
windows xp
wireless
Search
Search for:
Web Design & Development
All Forums
Tech Support Guy Forums
>
Internet & Networking
>
Web Design & Development
>
Simple & True Date Script
Tip:
Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]
Computer problem?
Tech Support Guy is completely free -- paid for by advertisers and donations.
Click here to join today!
If you're new to Tech Support Guy, we highly recommend that you visit our
Guide for New Members
. Enjoy!
Thread Tools
Duckman69
Senior Member with 728 posts.
Join Date: Jun 2007
16-Oct-2009, 02:11 AM
#1
Simple & True Date Script
I have been trying a few different ideas in html & java for writing the date at the top of my website, but it bases its date off the computer you are accessing the internet from, what im wondering is can i set up a date script that checks with my server or something ?
Register for free to hide this ad!
Squashman
Distinguished Member with 14,983 posts.
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: IIAHYAYCESA,YAADA!
17-Oct-2009, 12:23 PM
#2
Need to know what Web Server and OS you are running.
I did this years ago in Linux on Apache.
I would have to research it for anything else.
Duckman69
Senior Member with 728 posts.
Join Date: Jun 2007
17-Oct-2009, 06:52 PM
#3
i just set up a hosting account threw godaddy running a linux OS, i havent had any luck with my buddy google this time
if any1 can point me in the right direction here i would appreciate it
colinsp
Senior Member with 574 posts.
Join Date: Sep 2007
Location: Spain
Experience: Adv PC, int HTML, bit PHP
18-Oct-2009, 02:07 AM
#4
PHP will get you the server time and then you need to guess the visitors location from their url and add the time difference to the server time to get their location time.
Squashman
Distinguished Member with 14,983 posts.
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: IIAHYAYCESA,YAADA!
20-Oct-2009, 07:09 PM
#5
I remember how I did this now. I used server side includes. In order to do this, the server has to be configured to allow SSI. GoDaddy may or may not allow that.
Duckman69
Senior Member with 728 posts.
Join Date: Jun 2007
28-Oct-2009, 06:13 AM
#6
yeah i switched to fatcow for hosting & i had much more success, want to thank you guys for input Much appreciated
Duckman69
Senior Member with 728 posts.
Join Date: Jun 2007
28-Oct-2009, 06:19 AM
#7
as to colin, i took a easier path im too lazy to do all that i just keep Sever Time (EST Time Zone) : 5:50PM, plus a small number of people use web tunneling and that would throw there's off, i'd rather know its the same for everybody
and now that i say that... i wonder if maby i should be doing things your way actually.. hmm... grr... i hate being in design stage
Eriksrocks
Distinguished Member with 2,158 posts.
Join Date: Aug 2005
Location: Minnesota
Experience: Advanced
01-Nov-2009, 01:47 AM
#8
http://php.net/manual/en/function.date.php
There are a variety of output formats that you can use.
Smart Search
Find your solution!
«
Previous Thread
|
Web Design & Development
|
Next Thread
»
Currently Active Users Viewing This Thread: 1
(0 members and 1 guests)
WELCOME TO TECH SUPPORT GUY!
Are you looking for the solution to your computer problem?
Join our site today
to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our
Welcome Guide
to get started.
Thread Tools
Show Printable Version
Email this Page
Twitter!
|
Podcast
|
Mobile
|
Advertise
-- Khaki
-- Classic Blue
-- Gray Night
Contact Us
-
HelpOnThe.Net
-
Archive
-
Terms of Service
-
Top
You Are Using:
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 01:34 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.