You are here: what is the meaning of this? « PHP Programming Language « IT news, forums, messages
what is the meaning of this?

Posted by Chameleon on 12/11/05 23:50

the code below...
-------------------------------
<?
function errorHandler($errno, $str, $file, $line)
{
//if ($errno == E_STRICT) return;
fwrite(STDERR, "\n\n$errno: $str\n\n");
if ($errno == E_USER_ERROR) die();
}
set_error_handler('errorHandler');

$a = mktime(14, 0, 0, 12, 20, 2005);
echo date('d/m/Y', $a);
?>
-------------------------------
....produces this STDERR...
-------------------------------
2048: mktime(): It is not safe to rely on the system's timezone
settings. Please use the date.timezone setting, the TZ environment
variable or the date_default_timezone_set() function. We selected
'Europe/Helsinki' for '2.0/no DST' instead


2048: date(): It is not safe to rely on the system's timezone settings.
Please use the date.timezone setting, the TZ environment variable or the
date_default_timezone_set() function. We selected 'Europe/Helsinki' for
'2.0/no DST' instead
-------------------------------
What is the meaning of this message?
How can I silence it without commenting the commented line?

Thanks

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация