Warning: require_once (): It is unsafe to rely on the system timezone settingserror in PHP

I am trying to install an open source IIS application; after installation, I get the following error:

Warning: require_once (): You cannot rely on the system time zone settings. You must use the date.timezone parameter or the date_default_timezone_set () function. If you used any of these methods and you still get this warning, most likely you are mistaken with the time zone identifier. We chose Asia / Calcutta for 5.5 / no DST instead in D: \ Inetpub \ wwwroot \ dotproject \ lib \ adodb \ adodb.inc.php

+5
source share
1 answer

require_once(), /, script.

. http://docs.php.net/datetime.configuration#ini.date.timezone http://docs.php.net/timezones

:

date.timezone = "Asia/Kolkata"

php.ini.

<?php echo get_cfg_var('cfg_file_path');

, php.ini .

+12

All Articles