Here’s a simple way to check your PHP syntax against the compiler. Just do the following:
- Add a new User Tool (Program)
- Point the Command parameter to your PHP executable (absolute path) and add the following switches
-l -d html_errors=off
- Then click on Output Pattern and enter the following Regular Expression
^.+ in (.+) on line ([0-9]+)
this will allow you to go to the line of the error when you click on the error message in the output window.
The only down side to this is that it can only check 1 error at a time, if you know a way to display all errors at once do let me know; thanks! Happy Coding!


