Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
09-08-2005, 04:19 PM #1
- Join Date
- Sep 2005
- Thanked 0 Times in 0 Posts
How do you disable warnings in PHP?
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 #2
...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.Code:display_errors = Off
09-08-2005, 06:21 PM #3
You can also use:
at the top of your script.PHP Code:
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.