Or you can just add an @ in front of the function you are calling in your script which tells PHP to suppress all error warnings, which allows you script to continue running.
Neil Silvester -----Original Message----- From: Ed Lazor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 30 January 2002 3:52 PM To: Dan Nelson; Tshering Norbu Cc: [EMAIL PROTECTED] Subject: Re: Suppress WARNING At 11:40 PM 1/29/2002 -0600, Dan Nelson wrote: >In the last episode (Jan 30), Tshering Norbu said: > > > Hi list, > > > How do you suppress the WARNING message like the one here: > > > > > > Warning: stat failed for photos/p73n1.jpg (errno=2 - No such file or > > > directory) in /ad/details.php on line 12 > > > > > > Everything works fine even with that error. I wanted to suppress this > > error > > > and not display at all. > >This is a PHP question having nothing to do with mysql. Try a PHP >mailing list. Good advice. However, since I know the answer, I hope it's ok to respond. .... edit php.ini. There's a variable in there.... I don't remember the exact name off-hand, but it's pretty obvious. The file is very well commented and will give you the details of what you should set the value to for various options. -Ed --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php