PHP Checker (tick_24Pro, tick_24Std, cross_24Lite)

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.

To distinguish PHP messages from other 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 CSE 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 CSE 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 CSE HTML Validator and will need to be downloaded and installed separately. See PHP Links to download this file and 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".

Installing PHP

PHP syntax checking requires the php.exe CLI executable. This program is not included with CSE HTML Validator but can be freely downloaded.

See PHP Links to download this file and for more information. You will need to download and install the Windows binary version of php.exe as well as any DLLs it needs (which should be included with php.exe). This should be a fairly straightforward process. For example, download the Windows binary zip package and extract all the files in the zip to c:\php, c:\Program Files (x86)\PHP or another folder.

Troubleshooting PHP Checking

If the PHP syntax checking is not working correctly, then the following tips may help.

If using a php.ini file, make sure display_errors is set to "On".

Make sure php.exe and all supporting files and DLLs are installed correctly.

If you receive errors regarding dynamic link libraries when checking PHP syntax, then PHP may not be installed with all its supporting files and libraries (DLLs). You may want to try reinstalling PHP (we recommend using the Window binary zip package and extracting all the files and folders).

When running a PHP syntax check, CSE HTML Validator needs to create a temporary file. Make sure it has write access to the folder where the current document resides so it can create the temporary file there for the PHP checker to check.

The php.exe included with EasyPHP may not work. Instead, perform the install of PHP as mentioned above.

PHP Links