Warning: Max file size of 4194304 bytes exceeded...
| From: | Lee P Reilly | Date: | Thu, 16 May 2002 19:23:15 +0000 |
| Subject: | Warning: Max file size of 4194304 bytes exceeded... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97953@lists.php.net to get a copy of this message | ||
Hi,
I have another quick question (still on the topic of validating uploaded
files). I have upload_max_filesize = 4194304 in my php.ini file. When I
upload the file, the script that processes does the following:
1-Sets up the session info
2-Starts the HTML header template
3-Displays user login info
4-Does some error checking - file validation & file content validation.
5-Various info & menus are displayed
6- echos the HTML footer
This way, if there are any errors I can display them in a nice way i.e.
in between the HTML headers.
The question(s):
- Is there anyway to catch the error that causes the "Warning: Max file
size of blah exceeded" message
e.g. something like if (max_file_exceeded) {...} ? Right now, this
message appears at the top of the screen (therefore, before any of the
script is processes).
- Is there anyway to prevent the error message from being displayed on
screen, and perhaps set a flag so we know that the problem has occured?
Thank you very much in advance for any input.
- Lee