Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Turn on all error reporting in PHP

Answer:

Sometimes, when debugging, it is helpful when you need to enable all PHP errors and make them visible in your application (not in the log), you can put the following line at the top of your script.

<?php

    error_reporting(E_ALL);

  1. Turn off PHP error messages?
  2. How to prevent PHP script from running in Apache
  3. Turn off magic_quotes_gpc in PHP
  4. Turn on content compression in Apache
  5. Turn on register_globals in PHP

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>