Disable global error reporting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • howa

    #1

    Disable global error reporting

    given that i have no access to php.ini

    how can i disable all the error reporting using a single method /
    command ?

    thanks.

  • Mateusz Markowski

    #2
    Re: Disable global error reporting


    howa napisal(a):
    given that i have no access to php.ini
    >
    how can i disable all the error reporting using a single method /
    command ?
    error_reporting (0);

    Comment

    • Kirk Kimmel

      #3
      Re: Disable global error reporting

      You might not want to turn off error reporting but just suppress it so
      the page does not display the errors. This can be done with the
      following command:

      ini_set('displa y_errors', 'Off');

      Kirk

      howa wrote:
      given that i have no access to php.ini
      >
      how can i disable all the error reporting using a single method /
      command ?
      >
      thanks.
      >

      Comment

      • howa

        #4
        Re: Disable global error reporting


        Kirk Kimmel 寫道:
        You might not want to turn off error reporting but just suppress it so
        the page does not display the errors. This can be done with the
        following command:
        >
        ini_set('displa y_errors', 'Off');
        >
        Kirk
        >
        howa wrote:
        given that i have no access to php.ini

        how can i disable all the error reporting using a single method /
        command ?

        thanks.
        what is the difference?

        thanks

        Comment

        Working...