||Common Style Mistakes, Part 1|
|Subject:||E_ALL error reporting is a good thing|
An additional hint: If you set error_reporting to E_ALL (via php.ini, .htaccess, or ini_set() in your script) many "style mistakes" like these (though not all of these) will be flagged for you. It's a great way to make sure you are not perpetuating deprecated syntax in your scripts. Running my dev server that way has cleaned up my code a lot -- for example, if I reference a variable without assigning something to it first, I get an error message. That one alone has saved me hours of debugging time.
Showing messages 1 through 2 of 2.
E_ALL error reporting is a good thing
2003-06-02 08:14:34 anonymous2 [View]