I can get the season through the comparison of date, but how can i handle that depends on the user location, if the user location is in the northern or southern hemisphere
Asked
Active
Viewed 101 times
1
-
1http://stackoverflow.com/questions/7830351/is-there-an-easy-way-to-determine-which-hemisphere-a-user-is-in – Skarlinski Jul 02 '13 at 20:29
-
1This is very extensive - http://diveintohtml5.info/geolocation.html – Skarlinski Jul 02 '13 at 20:36
-
thanks, i'm reading both links – Emilio Gort Jul 02 '13 at 21:29
-
that is in javascript – Emilio Gort Jul 02 '13 at 21:32
-
1The safest way to get that information is getting it from the client so it involves some client side code (for example javascript like in the links given by Skarlinski) an alternate way would to determine the users location based on his IP, but as you can guess this one is less reliable. – Daniel P Jul 02 '13 at 21:50
-
@Skarlinski This is not a duplicate, for the simple reason that this is tagged `php`. The answer may *be* Javascript, but it's a PHP question. – lonesomeday Jul 02 '13 at 22:25
-
*Warning Joke Ahead* `if (confirm('Does your toilet flush clockwise?')) { alert("You're in the Northern hemisphere");; } else { alert("You're in the Southern hemisphere"); } – chrislondon Jul 02 '13 at 22:58
-
@lonesomeday Does putting only a link to a stack question has an extra meaning of me saying it's a duplicate? I'm pretty new here, still don't know all the subtexts. – Skarlinski Jul 03 '13 at 00:35