My project has the log for remote machines logged in. The timestamp recorded is in GMT . I want to display the regions from where the person has logged in depending upon the GMT. Does PHP provide any functions like getLocale() where the parameter for the function would be the GMT date time.

Please give suggestions ASAP.

    My problem here is I do not know what the locale is. I just have the GMT date time with me. I want to find the locale so that I know the location from where the user has logged in.

      When you say "find out where the user is from" do you mean what site they have come from to yours or where in the world they are

      GM

        I mean which region he comes from like London, Singapore etc.

          I am not sure, but you may want to look on some JAVA sites to see if they can get the system clock time to pass to PHP. Then you can work out the time difference, round it to the hour, and store in a cookie for the next time.

          Not sure how though 😉

            Write a Reply...