The error_reporting function only determines what severity of errors are reported - not where they get reported. Also, if you use error_reporting(E_ALL) then you will potentially get a lot of notice-level errors (so not really errors at all); it's usually best to use error_reporting(E_ALL & ~E_NOTICE).
To make your PHP errors appear on the web page, you also need ini_set('display_errors',1). Note that you should never do this on a live environment, as the errors give all sorts of clues as to your site's physical layout - as well as being plain ugly! If you have display_errors set to 0 (the default), then any errors will usually appear in the web server's error log.
To make your PHP errors appear on the web page, you also need ini_set('display_errors',1). Note that you should never do this on a live environment, as the errors give all sorts of clues as to your site's physical layout - as well as being plain ugly! If you have display_errors set to 0 (the default), then any errors will usually appear in the web server's error log.
Error_reporting(ALL);
i know this is written wrong but is something like this, Hope it helps.
i know this is written wrong but is something like this, Hope it helps.