Aella Posted November 2, 2006 Posted November 2, 2006 I’m looking for a way in php to tell if a specific module is installed in apache, akin to apache_get_modules(). I know phpinfo would work, but that outputs to the screen I’d really rather have a function that returns an array, or a Boolean if passed the name of a specific module. I’m creating a sanity check page for my domain, so I can tell everything is set up the way I want it to be. Its kind of like TCH Server Status page - failed tests are big and red so I can tell at a glance if things aren’t working. If I use phpinfo, I have to read the file and remember what it is I’m looking for. Quote
Aella Posted November 3, 2006 Author Posted November 3, 2006 Thanks so much! that solved my problem Quote
Steve Scrimpshire Posted November 3, 2006 Posted November 3, 2006 On this page is an example script of parsing phpinfo into some arrays: http://terra.di.fct.unl.pt/docs/php/function.phpinfo.php.htm Maybe this helps. Quote
Steve Scrimpshire Posted November 4, 2006 Posted November 4, 2006 (edited) My pleasure. I'm self-taught in PHP, so I have become pretty adept at finding obscure examples of PHP code. Edit: That's odd. If I look at the post times, it looks to me like y'all both actually replied to my post before I made it (even though your posts come after): Me: Yesterday, 10:02 AM Post #2TCH-Bruce: Yesterday, 07:36 AM Post #3 Aella: Yesterday, 09:22 AM Post #4 Edited November 4, 2006 by Steve Scrimpshire Quote
TCH-Thomas Posted November 4, 2006 Posted November 4, 2006 That's odd. If I look at the post times, it looks to me like y'all both actually replied to my post before I made it (even though your posts come after): That´s because of this. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.