CSS HTML Validator - The All-In-One HTML, CSS, Link, SEO, spelling, and Accessibility Checker
⯈ Check PHP Syntax
PHP Script Syntax Checking with CSS HTML Validator for Windows
CSS HTML Validator (Home, Pro, or Enterprise edition) can integrate with PHP's syntax checker for easy PHP script syntax checking. NOTE: Don't forget that CSS HTML Validator can also check the HTML output of your PHP scripts.
Follow the below steps to check PHP syntax with CSS HTML Validator :
Download CSS HTML Validator and install it (the free trial will work too).
NOTE: Either the "Thread Safe" or "Non Thread Safe" download option will work. Do not use the "Download source code" link. If you have a 64-bit OS then either the x64 or x86 version will work, but only the x86 version will work with a 32-bit OS.
Start CSS HTML Validator and go to the Validator Engine Options (Ctrl+F4) and then to the PHP Checker options page. Make sure the option to enable PHP syntax messages is enabled, and the path to php.exe is set correctly to something like "C:\PHP\php.exe" (where you unzipped the PHP files). Click OK.
In CSS HTML Validator, open 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 main program window. Messages from php.exe will begin with "[PHP]".
Please contact us if you have any questions about PHP syntax checking with CSS HTML Validator.