warnings for php?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zeroeth
    Junior Member
    • May 2004
    • 9

    #1

    warnings for php?

    is it possible to turn off warnings for php?
  • Jonathan
    Senior Member
    • Mar 2004
    • 1229

    #2
    Depending what it is, I think you
    could use the 'suppressent' before it;

    Like using mysql_connect() if you place
    an '@' before it, it'll suppress any warnings.

    Other wise, not sure...
    "How can someone be so distracted yet so focused?"
    - C

    Comment

    • Buddha
      Senior Member
      • Mar 2004
      • 825

      #3
      Be a good idea to figure out what causing the warnings but....

      You can add to the offending script the following:

      PHP Code:
      ini_set('display_errors''0' ); 
      or

      PHP Code:
      ini_set('error_reporting''0' ); 


      You could place them in an php.ini text file like this:

      Code:
      display_errors = 0
      or

      Code:
      error_reporting = 0
      You could do what Jonathan suggested too.
      "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

      Comment

      Working...