#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    11
    Rep Power
    0
    Hi,

    I do not want any warning messages to appear in my application. How can I suppress the output of warnings ?

    Thanks !

    Andi
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    Seaside, CA
    Posts
    84
    Rep Power
    15
    If you mean error messages, well, you insert your own. For example, use "if...else" and in the "if" put all your regular stuff to display data or whatever. Then in the "else" do something like:

    echo "Sorry. Can't do that right now.";

    Is that what you're looking for?

    ------------------
    From the day we're born, we're running out of time.
  4. #3
  5. No Profile Picture
    Viper_SB
    Guest
    Devshed Newbie (0 - 499 posts)
    If you mean warning messages or error messages that you get say if you forget the ;

    Put @ in front of the function (it doesn't work on every thing)

    ------------------
    Viper_SB
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Pune, Maharashtra, India
    Posts
    86
    Rep Power
    14
    If you are looking for the error messages which comes in the Browser like "it is not a valid MYSQL query in the line xyz." etc. then use '@' symbol before the queries, In case of most of the errors it surpresss the error and do not show anything.
    Nikunj
  8. #5
  9. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    Or check out chapter XLII. 'PHP options & information' in the manual and check out
    the error_reporting(); function which lets you decide which errors to display.

    If you have not get the manual -get it! its your friend @ http://www.php.net


    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

Similar Threads

  1. DBI warnings -- plz help
    By pranesh in forum Perl Programming
    Replies: 4
    Last Post: December 1st, 2003, 06:52 PM
  2. Installation LDAP under cygwin
    By joze in forum LDAP Programming
    Replies: 3
    Last Post: July 16th, 2003, 03:30 PM
  3. Cronjob madness
    By eliteboo in forum Linux Help
    Replies: 10
    Last Post: July 14th, 2003, 10:49 AM
  4. Please Help! How do I send messages to users?
    By Sojomy in forum PHP Development
    Replies: 9
    Last Post: January 10th, 2003, 03:28 PM
  5. Phpmyadmin is killin me.
    By Mikesfnp in forum PHP Development
    Replies: 3
    Last Post: December 1st, 2002, 11:35 AM

IMN logo majestic logo threadwatch logo seochat tools logo