Check your error reporting level...
PHP Code:
echo error_reporting();
//error_reporting(7);
//echo error_reporting(7);
The first line will echo the current level of error_reporting. The second will set the level to 7. The third will set the level to 7, and print the previous level.
7 is really good for everyday scritps. When in doubt, use 7. If your comming from a background in ASP, and like to set "Option Explicit" so you have to dim all your vars, you may like 15 (it will print a notice that a used var has not been initialized).
PHP docs:
error_reporting(), description of
Reporting Errors