How to turn off this error in wamp:
notice undefined offset
I’d like to turn of just this error, but not all errors.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two issues at work here. One is what errors PHP reports, and the second is whether or not it displays those errors on the page (as opposed to the apache error log). If you’d like to turn off just NOTICES:
If you’d like to report the notices to your error log but not display them to the user, do this:
Note that turning off display errors will stop displaying ALL errors to the end user, and you’ll need to look at the error log, usually located in /var/log/httpd/error_log to see any errors while testing.