Re: Re: date() and timezone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fernando M. M. wrote:
> 
> Hello,
> 
> 
>>>> But like i said i have lots of scripts inside
> this
>>>> folder, is there a way to set something on .htaccess to change
> the timezone?
>> why? ;-)
> 
> Because i can't set
> the timezone for every single script. Inside this folder and subfolders i guess there
> are about 10,000 scripts.

that will teach not to use global include files to init your apps.

even if you we stuck with editing 10,000 scripts (btw it sounds very fishy
to 10,000 scripts with date() calls in them - can anyone say 'code reuse'?)
exactly how hard would it be to write something that would go through all
those php files and add a single line (" ini_set('date.timezone', 'Europe/Amsterdam'); ")
to the top of the script (i.e. just after the first '<?php' | '<?') ?

> 
>>> What you were pointed to before + >
>>>  http://us3.php.net/manual/de/ini.php#ini.list
>> ah, now
> you've gone and made it easy for him :-)
> 
> Actually i don't have
> access to php.ini file. 

if you RTFM (and I mean actually READ) then you would know that you
can set the relevant date related ini settings in a .htaccess file

here is the relevant link again:

	http://php.net/manual/en/ref.datetime.php#ini.date.timezone


> Are there any other ways to do this?
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux