Quote:
Originally Posted by dansgalaxy
Care to explain how then?
|
Putting:
PHP Code:
error_reporting("E_ALL")
At the top of each page will hide all the errors.
Though, I prefer a nice if(@) as it helps with debugging problems and is a lot faster:
PHP Code:
if(@myfakefunctions()){ // Meaning no problems // Echo something } else { // Meaning Epic FAIL! // Put a debugger here. }
I find my second example much better as:
1. You can debug it and see exactly which part is broken (Assuming you debug correctly)
2. It's faster - Lots of errors on the first one will make your page dirt slow.
Though, My best advice is fix the errors instead of hiding them.
__________________
My Blog/Site: Please login or register to view this content. Registration is FREE
|