Utilize Grep and Vim

I was working on a client’s huge website for the past couple weeks that required searching many files for instances of a string. My workflow began running grep in the entire directory. grep -rin “phrase to search” * The command outputs the path to file and the line number the phrase was found on. path-to-file.php:78: […]

Turn on Error Reporting

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.