NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Is there a possible way to find client time using CGI?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-16-2007, 01:52 AM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Mar 2006
Posts: 139
leusmith is an unknown quantity at this point
 



Is there a possible way to find client time using CGI?


Hi guys.....

I am currently developing a website that is to hold user-generated content(like forums).

I do not want to use JavaScript to find out the user's system time(becoz if it is disabled I will have to show the GMT time or anything else).
I need to know which timezone they are in. If I can get the user's system time, I can find the difference.

Is there any possible way to do it with CGI?
I am wondering...

I do not want to use any solution like Hostip.info (its free but not reliable). Anything like Maxmind's GeoIP would cost either $50 for the database or $20 per month. I am a student with a limited budget and do not want to go for such services. I would like to know whether there is any solution....
????: NamePros.com http://www.namepros.com/programming/362469-there-possible-way-find-client-time.html

--
Waiting for your reply
leusmith is offline  
Old 08-16-2007, 07:26 AM   #2 (permalink)
Domains my Dominion
 
sdsinc's Avatar
Join Date: Aug 2005
Location: Web 1.0
Posts: 9,552
sdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatness
 


Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV Animal Rescue Wildlife Breast Cancer Animal Rescue Wildlife
There is no guaranteed way.
Javascript is not always enabled on the browser.

Looking up the IP could be the best solution.
Maxmind provides a free db with IP/country match but without latitude/longitude information. At least you have the country but large countries like the US span several time zones...
Also certain IPs may not be in the DB. Assume the match rate is something like 99%.

Advice: let users update their profile but 'suggest' the best guess. The free geoip db is a good start.
__________________
NameNewsletter.com - free lists of available domain names
ZoneFiles.net (beta) - ccTLD and gTLD droplists
sdsinc is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:49 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger