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




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to