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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php