PHP is a third party scripting language that is especially suited for web development and can be embedded into HTML documents. If  you develop PHP scripts, then consider using the PHP integration to perform additional syntax checking on PHP scripts and documents.

To distinguish PHP messages from other validator messages, the string "[PHP]" is prepended to the PHP messages.

NOTE: PHP is not developed or maintained by us. We only provide an interface to the PHP syntax checking function of PHP. Therefore, only bugs or problems with the PHP interface (but not PHP itself) should be reported to us.

PHP Syntax Checking Options

Enable PHP syntax messages in validation results - Check this box to enable PHP syntax checking during validations and to display the results in the validation messages. Checking this option will result in slightly slower validation times because the PHP syntax checker must be run. This option is not enabled by default.

Improve PHP syntax messages - Check this option to enable CSS HTML Validator to make changes to PHP message output to try to make the PHP messages more clear and easier to understand for the average web developer. Message IDs may also be added to some messages so that the message can be disable or its type changed. If you want unaltered PHP output, then uncheck this option. This option is enabled by default.

Perform PHP syntax checking only when PHP script is detected - When CSS HTML Validator's own validator is used, PHP syntax checking is enabled, and PHP script is detected, then PHP syntax checking will be performed. If PHP script is not detected, then PHP syntax checking will not be performed even if it is enabled (this saves time and computer resources). This option is enabled by default.

Text Edit Options

Path to php.exe - Specify the full path to the CLI executable. This is usually php.exe. This file is not included with CSS HTML Validator and will need to be downloaded and installed separately. See the below section about installing PHP for more information.

General arguments - These arguments are used when calling PHP to perform a syntax check. The default is "-l -d display_errors=on".

hmtoggle_plus1Installing PHP for PHP syntax checking
hmtoggle_plus1Troubleshooting PHP syntax checking

PHP Links