Archive for May, 2009

Filed Under (Coding, debugging) by steve on 17-05-2009

I recently started using PHP’s built-in syntax checker on a more regular basis - it cuts down that whole eyeball-ing routine where you think you know that there is a missing semi-colon, and you insist on searching for it all over the place, or you’re confident you can find the extra closing parentheiss, and you waste time scanning the page.

I set up two tools (basically launchers) in UltraEdit to launch php -l (small L).

One of them to syntax-check 1.) the Active File, (if you’re not setting this up in UltraEdit, which I assume the majority, just basically just call php -l filename.php)

check single file



Read the rest of this entry »