Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Add a PHP syntax checker to BBEdit' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Add a PHP syntax checker to BBEdit
Authored by: kfaulhaber on Jun 11, '03 12:02:06AM

For this to work, you must have the command line executable of PHP installed, which is something you have to do intentionally. The MacOS install (and the standard install if you are building from source) is to install an Apache module.

[ Reply to This | # ]
Simple version
Authored by: i5ao on Jun 13, '03 06:37:51PM
Hey all,

Here's my "bare bones" version of the script, if you'll excuse the pun. Tested and works, assuming you have PHP installed, --cli-enable displayed in your phpinfo(); and your php binary is pointed to by the script property phpref.

There's a way to create a BBEdit style search results window with this data; maybe when I get some time.




property phpref : "/usr/local/php/bin/php -l "
  tell application "BBEdit" to get file of first text window
  do shell script phpref & POSIX path of result
  display dialog "Ok: " & result buttons {"finished checking"} default button 1
on error msg
  display dialog "Err: " & msg buttons {"finished checking"} default button 1
end try

[ Reply to This | # ]
Simple version
Authored by: sylvank on Jul 23, '03 12:19:17PM

Isao, thanks for this, it works whereas the original did not for me.

[ Reply to This | # ]