Turn on PHP Error Messages ?

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

    Turn on PHP Error Messages ?

    How do you turn on PHP error messages in PHP, So I can see what is
    happening when a php page fails ?

    Windows & Linux ??
  • Martin Wickman

    #2
    Re: Turn on PHP Error Messages ?

    In article <3f12a831.36173 4276@news.btcli ck.com>, Frank @ MyPlace.Com (Frank) wrote:[color=blue]
    > How do you turn on PHP error messages in PHP, So I can see what is
    > happening when a php page fails ?
    >
    > Windows & Linux ??[/color]

    php.ini (in /etc/ somewhere). Set error_reporting and display_errors
    as you see fit. I prefer log_errors = Off.

    Comment

    • Erik

      #3
      Re: Turn on PHP Error Messages ?

      Hi!

      either you can change php's error handling in the php.ini, or you just add
      the following line at the beginning of a script (useful if you only want to
      check one page):

      ERROR_REPORTING (E_ALL);


      Erik

      <Frank @ MyPlace.Com (Frank)> schrieb im Newsbeitrag
      news:3f12a831.3 61734276@news.b tclick.com...[color=blue]
      > How do you turn on PHP error messages in PHP, So I can see what is
      > happening when a php page fails ?
      >
      > Windows & Linux ??[/color]


      Comment

      • Jon Kraft

        #4
        Re: Turn on PHP Error Messages ?

        Frank @ MyPlace.Com (Frank) wrote:
        [color=blue]
        > How do you turn on PHP error messages in PHP, So I can see what is
        > happening when a php page fails ?[/color]

        This page includes the relevant php.ini settings:


        HTH;
        JOn

        Comment

        Working...