Check PHP Syntax

/ Published in: Bash
Save to your folder(s)

Here's a simple one liner you can use to syntax check all php files in your working directory.

Copy this code and paste it in your HTML
  1. find . -type f -name "*.php" -exec php -l {} \; | grep -v 'No syntax errors'


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.