Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Signature-free discourse for serious web publishers > YOUR CREATION: Building & Maintaining A Web Site > Web Development - Programming / Coding
User Name
Password
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 11-09-2001, 12:57 PM   #1
AffiliatesNL
Registered User
 
Join Date: Jul 2001
Location: Almere, The Netherlands
Posts: 5
Default PHP: local time

Hello,

Anybody knows the command to get the local time of the visitor of my website (so not the local time of my own server, but the visitor).

Thanks in advance!

Barry
AffiliatesNL is offline   Reply With Quote
Old 11-16-2001, 08:44 PM   #2
ccole
I am a Contributing Geek. Are You?
 
Join Date: Aug 2000
Location: CA USA
Posts: 484
Default

Little late on the return, but here it is. I would be extremely surprised if you could get the local time of the visitor, and the reason is this: PHP is server-side scripting, meaning everything is parsed by the server. The time that it reads is what is on the server.

Javascript on the other hand is client-side scripting. Everything is parsed by the browser on the local computer, so if you want the local time of your visitor, it should be done by Javascript.

Correct me if I'm wrong, but that is how I understand it.
ccole is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help, PHP and Search Engines MAXis Search Engine Marketing & Optimization 3 12-13-2001 11:38 AM
how to increase apache execution time? notibrian Web Hosting Discussion 3 08-24-2001 02:33 AM
AOL Time Warner: Ad Revenues Stabilizing LordBiO Making Money with CPC and/or CPM Programs 2 06-21-2001 06:36 AM
What time zone is this board in? demae geek/yak 3 05-08-2001 05:25 PM
Too many ideas, not enough time! DJ_B Web Design and Webmaster Issues 7 10-20-2000 08:08 AM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 05:35 PM.


GeekVillage.com is copyright © 1998-2015 Curiosity Cave - Science gifts for clever kids. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.