It makes use of the fact that the version of PHP that ships with Panther has a command line tool. By connecting the current BBEdit document with that command line tool, the script provides a one-click way of syntax checking and even highlights the line when an error is found.
For the last two months I’ve been doing almost nothing but writing PHP in BBEdit. With this Applescript I’ll be able to reduce the amount of application switching I need to do. Now when I switch to Safari to refresh a PHP page I can do it secure in the knowledge that there won’t be any pesky parse errors cropping up.
BBEdit: now it really doesn’t suck.®