Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Upload error message display
October 3, 2007, 8:19 pm
rate this thread
Is there a handy way to show error message instead of error code when
For example, if I get error code 3 (UPLOAD_ERR_PARTIAL), I can
directly show users that 'Only part of the file was uploaded.' instead
of if $errorCode==3 then print 'Only part of the file was uploaded.',
which is time-consuming.
Re: Upload error message display
What's wrong with $errorCode==3?
I would probable create an array of all error messages, where each
element index corresponds to an error number. Then you could simple say
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
-----END PGP SIGNATURE-----