View Full Version : How do you disable warnings in PHP?
09-08-2005, 04:19 PM
im new to PHP and i was wondering how i go about disabling warnings in PHP? im using XAMPP with Dreamweaver MX. I was told something about doing it in the config?
09-08-2005, 06:05 PM
display_errors = Off
...in your php.ini file. i highly recommend that you don't do this on your development environment as this will nearly impossible to debug your code.
09-08-2005, 06:21 PM
You can also use:
at the top of your script.
Personally, I think that if you are new to PHP then you should leave it on... I think everyone should leave it on except on their actual website server... Reason being, if PHP is generating warnings then something could/should be done to stop them happening.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.