Chuck Grimmett

Microblog post

This will run over every single PHP file on the site and check it for syntax errors using the current version of PHP:

	
find -L /srv/htdocs -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l

Useful for testing PHP upgrades.

h/t Tony Hegyes



Comments

One response to “This will run over every single PHP file …”

Leave a Reply

Webmentions

If you've written a response on your own site, you can enter that post's URL to reply with a Webmention.

The only requirement for your mention to be recognized is a link to this post in your post's content. You can update or delete your post and then re-submit the URL in the form to update or remove your response from this page.

Learn more about Webmentions.