Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
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:
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 ]

 
Thread Tools
Duckman69's Avatar
Computer Specs
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 ?
Squashman's Avatar
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's Avatar
Computer Specs
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's Avatar
Computer Specs
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's Avatar
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's Avatar
Computer Specs
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's Avatar
Computer Specs
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's Avatar
Computer Specs
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.
Reply Bookmark and Share

Smart Search

Find your solution!



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


You Are Using:
Server ID
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.
Powered by Cermak Technologies, Inc.