date & set_error_handler problem (SOLVED)
Posted: Fri Jan 13, 2006 4:34 am
Hi,
I'm a beginner with PHP and I'm stucked in this problem:
Why this prints "error" and not 2006??? A bug???
I have Windows XP, PHP 5.1.1 and Apache 2.0.55. I can't find any error/notice/warning messages in logs.
Plz let me know the answer!
I'm a beginner with PHP and I'm stucked in this problem:
Code: Select all
<?php
set_error_handler('my_e_handler');
function my_e_handler() {
echo "error";
exit();
}
$my_date = date('Y');
echo $my_date;
?>I have Windows XP, PHP 5.1.1 and Apache 2.0.55. I can't find any error/notice/warning messages in logs.
Plz let me know the answer!