Syntax check

You are viewing revision #1 of this wiki article.
This version may not be up to date with the latest version.
You may want to view the differences to the latest version.

next (#2) »

  1. Scenario
  2. Solution


So I've been busy making lots of modifications to my views/models/controllers - came to test the app and got a blank screen. Nothing in the application.log file so must be a syntax error somewhere... But which file?


If you are using linux (Ubuntu in my case) and a local Apache server, then run the following from a terminal from the protected directory

find . -name \*.php -exec php -l "{}" \;

This will syntax check each php file recursively from the current directory.

Full credit to

4 0
Viewed: 13 692 times
Version: Unknown (update)
Category: Tips
Tags: php, syntax
Written by: Russell England
Last updated by: Russell England
Created on: May 4, 2011
Last updated: 11 years ago
Update Article


View all history

Related Articles