Re: Changing the Time Zone in php.ini

From: Date: Thu, 08 Jan 2004 09:37:49 +0000
Subject: Re: Changing the Time Zone in php.ini
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174040@lists.php.net to get a copy of this message
Hi, Thursday, January 8, 2004, 6:33:45 PM, you wrote: AH> Hello, AH> I have a requirement to run two different sites that are in different time AH> zones on the same machine. Does anyone know if this is possible to do by AH> running two instances of php and making a change in the php.ini? Or do you AH> have any other suggestions on how this can be done? AH> Thank you. AH> Regards, AH> Andy I have an autoprepend file with this in it: if(isset($_SERVER['HTTP_HOST'])){ $host_address = ereg_replace('www.','',$_SERVER['HTTP_HOST']); switch($host_address){ case 'usdomain1.com': case 'usdomain2.com': putenv('TZ=America/New_York'); break; case 'usdomain3.org': putenv('TZ=America/Chicago'); break; case 'ukdomain.com': putenv('TZ=GB'); break; default: putenv('TZ=Australia/Brisbane'); break; } } -- regards, Tom

« previous php.general (#174040) next »