Thread
:
PHP Change TZ Timezone on shared Linux server
View Single Post
#
2
(
permalink
)
05-27-2008, 10:07 AM
nixcraft
Never say die
User
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,035
Rep Power:
10
You need root access to change timezone. For accessing and setting environment variable use php putenv()
Code:
putenv ('TZ=Europe/Amsterdam'); mktime(0,0,0,1,1,1970); echo date("H:i:s");
See
PHP: putenv - Manual
__________________
Vivek
|
My personal blog
Linux Evangelist
Play hard stay cool
Last edited by nixcraft; 05-27-2008 at
10:09 AM
..
nixcraft
View Public Profile
Send a private message to nixcraft
Visit nixcraft's homepage!
Find all posts by nixcraft