/ Published in: Bash
Here's a simple one liner you can use to syntax check all php files in your working directory.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
find . -type f -name "*.php" -exec php -l {} \; | grep -v 'No syntax errors'
URL: http://www.shell-fu.org/lister.php?id=535