setting error level for a particular directory / page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • laredotornado@zipmail.com

    #1

    setting error level for a particular directory / page

    Hi,

    I'm using PHP 4.4.4. In our php.ini file we have notices and warnings
    turned off. However, I would like to enable them for a small subset
    of pages. I know the pages specifically, but I would also settle for
    enabling notices and warnings for a certain directory.

    Is this possible, and if so, how?

    Thanks, - Dave

  • gosha bine

    #2
    Re: setting error level for a particular directory / page

    On 14.05.2007 19:02 laredotornado@z ipmail.com wrote:
    Hi,
    >
    I'm using PHP 4.4.4. In our php.ini file we have notices and warnings
    turned off. However, I would like to enable them for a small subset
    of pages. I know the pages specifically, but I would also settle for
    enabling notices and warnings for a certain directory.
    >
    Is this possible, and if so, how?
    >
    Thanks, - Dave
    >
    Yes, put the "php_value" directive with "error_reportin g" and desired
    error level in that dir's .htaccess

    --
    gosha bine

    extended php parser ~ http://code.google.com/p/pihipi
    blok ~ http://www.tagarga.com/blok

    Comment

    • Jerry Stuckle

      #3
      Re: setting error level for a particular directory / page

      laredotornado@z ipmail.com wrote:
      Hi,
      >
      I'm using PHP 4.4.4. In our php.ini file we have notices and warnings
      turned off. However, I would like to enable them for a small subset
      of pages. I know the pages specifically, but I would also settle for
      enabling notices and warnings for a certain directory.
      >
      Is this possible, and if so, how?
      >
      Thanks, - Dave
      >
      Dave,

      Probably the most accurate way is to add to the top of the pages you
      wish to have errors shown:

      <?php
      error_reporting (E_ALL);
      ini_set('displa y_errors', 1);
      ?>

      You could also add to an .htaccess (or the appropriate directory entry
      in your httpd.conf file)

      php_value error_reporting 6143
      php_value display_errors 1

      (6143 is is the decimal value for E_ALL).

      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      Working...