Well I asked a simple question to deal with time zones ( range(-12,12) ), so he told me to look up date_default_timezone_set(), but I'm unclear on how to use it. How would I use that for creating a basic time zone script for dates?
To note my question was, how could I create a timezone script, if the default time() on different servers are always different?
__________________ PHP/XHTML Freelancer: Cleanscript.com v3 - Programming starting at just $5 act now!
As you can see, date() has given us different times depending on what timezone we have set.
You can provide this functionality by storing the users timezone choice (full list: PHP: List of Supported Timezones - Manual) then using date_default_timezone_set() before you run any date/time functions.
Also, PHP5 expects you to set a default timezone using date_default_timezone_set() before you use any date functions