Whenever there is an error, PHP throws an additional error/warning message on the web browser that the timezone should be set
Here is what I found as I read a PHP tutorial book Beginning PHP 5.3 by Matt Doyle
Set the date/timezone setting to avoid the warning that PHP borrows it from the system
To configure the setting, use phpinfo();
1. Find the location of the ini file: Loaded Configuration File
C:Program FilesPHPphp.ini
2. Look to see if it has already set in the phpinfo(); result
It is around halfway down the page
3. To set the value in the ini file
Open the ini file, and find date.timezone =
4. Go to http://php.net/timezone and select one: Asia/Seoul
and add it after the equal sign
5. Rerun Apache and phpinfo();
No comments:
Post a Comment