Add the following code before whatever statement you want show.
ini_set('display_errors',1); error_reporting(E_ALL);
The reason for PHP errors sometimes not showing up is because the server is set to log the error to the error log files and not display on screen. This is generally the case on a production server.
By PHPin24 @ 2009-07-09 18:53:34
|