Skip to content

Instantly share code, notes, and snippets.

@travist
Last active August 29, 2015 14:00
Show Gist options
  • Save travist/11381206 to your computer and use it in GitHub Desktop.
Save travist/11381206 to your computer and use it in GitHub Desktop.
Shell Command line to return all of PHP configurations in a list.
php -i | grep 'Configure Command =>' | awk '{for(i=5; i<=NF; i++) {print substr($i, 2, (length($i) - 2))}}'
@xeoncross
Copy link

Doesn't work for me on Debian 7 64bit with PHP 5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment