In this snippet we print out the Apache modules that are running on the server.
<pre><?phpprint_r(apache_get_modules());?></pre>
Straightforward, but can be quite a useful little function if you need to know your servers capabilities.
This only works when PHP is installed as an Apache module. This will not function when using PHP as CGI (ex: suPHP).
Thanks for the comment. More info can be found: http://www.php.net/apache_get_modules
Br
Jamie Making Drupal Mobile
without PHP from the shell:
apache2 -t -D DUMP_MODULES
Monetize Your Site
Comments
Doesn't always work
This only works when PHP is installed as an Apache module. This will not function when using PHP as CGI (ex: suPHP).
Interesting
Thanks for the comment.
More info can be found: http://www.php.net/apache_get_modules
Br
Jamie
Making Drupal Mobile
...without PHP:
without PHP from the shell:
apache2 -t -D DUMP_MODULES