Re: Supressing warnings on "max file size exceeded"

From: Date: Wed, 25 Jul 2001 14:11:59 +0000
Subject: Re: Supressing warnings on "max file size exceeded"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59550@lists.php.net to get a copy of this message
binglist@webbplatsen.se (Bing) wrote: > How do I suppress the following message when posting a file to a > .php-script? > > Warning: Max file size exceeded - file [uploadedfile] not saved in > /home/html/org.begravningar/intradev_html/forum.php on line 0 > > It's a warning on line 0, and even if I put error_reporting(0) on line > 1 it doesn't help. Since the warning is always present all cookies (or > other headers) fail too. > > Putting a limit in the <input>-tag for the file only triggers the > warning earlier.. > > Any suggestions? > is the file very large? then you might have to set: ; Maximum allowed size for uploaded files. upload_max_filesize = 2M to some more (in your php.ini). -- Henrik Hansen

« previous php.general (#59550) next »