FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Date/Time warning
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Date/Time warning [message #177802 is a reply to message #177749] Sat, 21 April 2012 17:09 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Goran wrote:

> On 20.4.2012 9:12, Torsten Jørgensen wrote:
>> On 2012-04-20 06:47:06 +0000, Goran said:
>>> On 20.4.2012 8:44, Torsten Jørgensen wrote:
>>>> I get a warning about timezones when using date(). Is there something
>>>> new in PHP, I've
>>>> just migrated from one mac to another.
>>> Probably you should configure default time zone in php.ini.
>>
>> Thankyou, cool - but I can't find php.ini. Could you give me
>> a little more help. I should probably write something like
>> Europe/Copenhagen, but what is the directive exactly?
>
> Which os you are using? If its linux try "locate php.ini"

locate(1) will not yield useful results unless updatedb(1) had been run on
that system first and the directories in question are included in the
indexing and the user running updatedb(1) has had permission to read the
pertinent directories and files. There is no requirement that – assuming
the findutils are even installed – updatedb(1) be run as a root cron job on
a Linux-based system. If updatedb(1) had been run, locate(1) may very well
yield several paths for php.ini as each server version and PHP variant (in
particular (PHP Apache module and PHP CLI) likely will have its own
configuration.

Bottom line: In 9 of 10 cases the output of `locate php.ini' is completely
useless.

When in doubt, call phpinfo() in the *same* PHP program first. It tells you
where php.ini for that program is located and what *other* configuration
files are considered that may very well contain the setting in question
(which is especially common on Linux-based systems because of convenient
package management for PHP extensions), so as to avoid modifying the wrong
file or duplicating settings (with adverse effect on the duplicate or the
duplicated setting).


PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: php include, function, ...
Next Topic: session question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 12 18:40:58 GMT 2024

Total time taken to generate the page: 0.04701 seconds