Syntax Check

PHP

Check your PHP scripts for syntax errors using the PHP interpreter.

Configuration

Before you can check your PHP script for any syntax errors, you must have the PHP package installed on your computer and configure phpDesigner to know where to find the PHP interpreter (php.exe, win-php.exe or php-cgi.exe).

  1. On the Tools menu, point to Preferences
  2. Select Debugger
  3. In the field 'PHP' type in the path for the PHP interpreter

If you don't like to use the default PHP that comes with phpDesigner 7 you can configure you can use your own PHP. Open the file php.ini in your PHP and add:

display_errors = On ; DO NOT CHANGE - REQUIRED FOR Syntax Check IN PHPDESIGNER
display_startup_errors = Off
short_open_tag = On

In phpDesigner 7, go to the menu Tools > Preferences > Debugger > Syntax check. Enter in the path to your PHP.

Usage

  • On the Debug menu, click PHP Syntax Check

If the PHP interpreter finds any errors in the file, all errors, warning etc. will be listed in the Debug panel.

HTML/XHTML and CSS

Check your HTML/XHTML and CSS code for syntax errors on the fly with the built-in syntax checker.

You can disable this feature in the menu Tools > Preferences > Debugger > Syntax Check > Live Syntax Check for HTML, XHTML and CSS.