Code
-
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. The command outputs the path to file and the line number the phrase was found on. I would then open the file in…
-
Turn on Error Reporting
It’s PHP 101, yet so many developers fail to remember it. 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.