You can use the date_default_timezone_set(), it will set the default timezone 
to your timezone choose, some server denied the access to the environment 
variable

Yuri Yarlei.
Programmer PHP, CSS, Java, PostregreSQL;
Today PHP, tomorrow Java, after the world.
Kyou wa PHP, ashita wa Java, sono ato sekai desu.



> Date: Wed, 22 Jul 2009 15:16:25 +0100
> From: phpm...@jawbone.freeserve.co.uk
> To: manojsingh2...@gmail.com
> CC: php-general@lists.php.net
> Subject: Re: [PHP] putenv usage
> 
> 2009/7/22 Manoj Singh <manojsingh2...@gmail.com>:
> 
> > Now my question is whether it is fine to use putenv in the production
> > environment? Whether the putenv changes the timezone value globally for all
> > request or for the current request only?
> 
> "The environment variable will only exist for the duration of the
> current request." - www.php.net/putenv
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

_________________________________________________________________
Compartilhe os momentos mais importantes da sua vida.
http://www.microsoft.com/brasil/windows/windowslive/products/photos-share.aspx?tab=1

Reply via email to