Skip to content

Perform syntax check to PHP files

Perform syntax check to PHP files

Answer:

To perform syntax check to PHP file, use the php command with -l option.

e.g.

#  php -l test.php
No syntax errors detected in test.php
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  1. How to perform syntax check for Python program
  2. How to perform syntax check for Perl program
  3. How to perform syntax check on a bash script?
  4. How to check the Apache configuration file (httpd.conf)?
  5. Syntax highlighting in PHP

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*