Re: How to suppress warning in file upload

From: Date: Thu, 16 Nov 2000 09:22:11 +0000
Subject: Re: How to suppress warning in file upload
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25660@lists.php.net to get a copy of this message
Maxim Maletsky wrote: > > this can be modified in PHP.ini > search for max_file_upload No, this is not what I want. 1) I'd like to keep the max_file_upload value; 2) I'd like to include a $MAX_FILE_SIZE HTTP variable in the script which is less than the max_file_upload; 3) I do not want to change to global PHP configuration. So I'd just like to suppress the warning. s.m. > > Cheers, > Maxim Maletsky > > -----Original Message----- > From: Sascha Mantscheff [mailto:smantscheff@9monate.de] > Sent: Thursday, November 16, 2000 5:51 PM > To: php-general@lists.php.net > Subject: [PHP] How to suppress warning in file upload > > I'm using the file upload feature. When uploading large files, I get the > warning: > > Warning: Max file size exceeded - file [userfile] not saved in > <myfile>.php3 on line <nnn> > > At the beginning of the file I suppress error reporting with the > statement > error_reporting(0); > > Still, this error gets through. [Also, line <nnn> does not contain any > relevant code for this warning.] How can I suppress this warning without > changing the global error reporting configuration? > > s.m. >

« previous php.general (#25660) next »