How do you disable a specific warning message in PHP?
I have an html upload form and am okay with an upload limit, but when I reach my upload script, it throws the warning: "Warning: POST Content-Length of 182003018 bytes exceeds the limit of 134217728 bytes in Unknown on line 0".
I want to disable this message so that I can catch the error myself and send a message back to the user, but the only problem is that I can disable every single error message with "ini_set('display_errors', 'Off');" except that one error.
Any suggestions?
A try catch block won't work. It's throwing that message the second it hits the upload script.
I have an html upload form and am okay with an upload limit, but when I reach my upload script, it throws the warning: "Warning: POST Content-Length of 182003018 bytes exceeds the limit of 134217728 bytes in Unknown on line 0".
I want to disable this message so that I can catch the error myself and send a message back to the user, but the only problem is that I can disable every single error message with "ini_set('display_errors', 'Off');" except that one error.
Any suggestions?
A try catch block won't work. It's throwing that message the second it hits the upload script.