Last active
November 17, 2022 14:57
-
-
Save fedir/57c000cc3b71d5f831e919db6c7b35d4 to your computer and use it in GitHub Desktop.
Get PHP extension directory in shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PHP_EXT_DIR=$(grep extension_dir= `which php-config` | sed s/extension_dir=\'// | sed s/\'//) | |
echo $PHP_EXT_DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment