Jump to content

Recommended Posts

Posted

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.

Posted (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 #2

TCH-Bruce: Yesterday, 07:36 AM Post #3

Aella: Yesterday, 09:22 AM Post #4

Edited by Steve Scrimpshire

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...