How to Find If an Extension Exists in the PHP Configuration Through Terminal
Written by Richi González Thursday, 19 July 2012
This article will show you how to search for functions inside the PHPinfo through a terminal or console. I will show you a simple line to execute that finds if a certain word is found in the PHP info. This is useful for searching for functions.
1. Open up a terminal or console.
2. Let’s say if you want to know if GD libraries are installed, you’d search for ‘gd’ with the code like this:
php -i | grep gd
3. It will tell you if it was found or not. This way you won’t have to be checking with a phpinfo(); every time you do changes to the php.ini
If you have any question, please let me know and I’ll be more than glad to assist you.
Owner of Juapo2Services.com