CSE HTML Validator Standard and above can integrate with PHP's syntax checker for easy PHP script syntax checking. Simply download & install PHP and then point CSE HTML Validatorto it.
- Download CSE HTML Validator Standard or above and install (the free trial will work).
- Download the PHP Windows binary files (not the source). We recommend downloading the ZIP file and then extracting it to a folder like
c:\PHP
orC:\Program Files\PHP\php.exe
. Either the "thread safe" or "non thread safe" download options should work. - Load CSE HTML Validator and go to Options->Validator Engine Options and the PHP Checker Page. Make sure the option to enable PHP syntax messages is checked, and the path to
php.exe
is set correctly to something likeC:\PHP\php.exe
. - In CSE HTML Validator, load your PHP document (or HTML, CSS, etc) and press
F6
to check it. The results should appear in the Results Window at the bottom of the window. - You can also use the integrated web browser (in browse mode) to check the HTML output of PHP scripts.
The validation results, which include the PHP syntax check, are shown at the bottom of the window in the Results Window. Notice the PHP syntax error for the double right parenthesis in the echo() function. Messages from the PHP syntax checker begin with "[PHP]".
The PHP Checker options page in the Validator Engine Options of CSE HTML Validator.
No comments:
Post a Comment