It’s PHP 101, yet so many developers fail to remember it. display_errors = On error_reporting = E_ALL | E_STRICT Always enable the display of errors on your development server, disable them on the live server. Showing all errors will help you find those stubborn programming mistakes quickly. Set these options in your php.ini file.
Testing if a function exists in PHP is easy. Testing if a command exists on the system is also easy. I’ve never really run into the problem of having to create a compatibility suite script to make sure my PHP script will run without trouble. Simple things like checking the version of PHP installed or the […]