How to get PHP to remove html code from messages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mydejamail@yahoo.co.uk

    #1

    How to get PHP to remove html code from messages


    I am running php scripts from the command line, and it always outputs
    errors in html mode. Is there an option to disable the html from the
    error messages?

  • Sean

    #2
    Re: How to get PHP to remove html code from messages

    In your php.ini file set

    html_errors = Off

    Comment

    • mydejamail@yahoo.co.uk

      #3
      Re: How to get PHP to remove html code from messages

      Will using ini_set(html_er rors, 0) in the script itself work?

      Comment

      Working...