putenv usage

From: Date: Wed, 22 Jul 2009 14:08:42 +0000
Subject: putenv usage
Groups: php.general 
Request: Send a blank email to php-general+get-295684@lists.php.net to get a copy of this message
Hi All, I have a page where the user specifies in which timezone they belong to and based on that i have to show the date & time. So I have to set the different timezones. For this I am using putenv function like: putenv("TZ=US/Eastern"); 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? Please advise. Regards, Manoj

« previous php.general (#295684) next »