Basically yes, unless you want to patch php sources and recompile. You could use error_reporting(), but the notice is issued befor you script gets to run, so that would not help.
Jason Young wrote: > Thanks for your reply... > > However, is that the ONLY way? Shouldn't this be something that is > not reported as an error to begin with? > > But even so, what about the other Notices I might receive in regards > to other debugging.. I have to get rid of all that, too? > > Basically I'm asking if this is the only way to do it...... > > Thanks. > -Jason > > > > Marek Kilimajer wrote: > >> Turn off notice logging in your php.ini, just keep warnings and errors. >> >> Jason Young wrote: >> >>> I have some code that a user can set a description about an item to >>> be posted, and then add some image files of the item. >>> >>> Its a 3x3 frame of <input type="file"> fields, along with an >>> 'include' line for each one.. only selecting a file with the >>> 'Browse' button, or entering a website manually will trigger this >>> include.. >>> >>> Of course, there aren't always going to be 9 images to upload, so >>> sometimes they have to be left blank ... everytime I submit >>> something without all 9 entries filled, I get a bunch of lines in >>> my error log like the following: >>> >>> [error] PHP Notice: No file uploaded in Unknown on line 0 >>> >>> Is there something I can do to combat this? It's quite annoying to >>> see up to 9 of these lines everytime I submit something from my page. >>> I don't want to turn off all error reporting or anything like that, >>> either... I'd like to see something that'll make it a non-error. >>> >>> Thanks! >>> -Jason Young >>> >>> >> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php