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'

URL: http://www.shell-fu.org/lister.php?id=535

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.