apache_mod_loaded [ WordPress Function ]
apache_mod_loaded ( $mod, $default = false )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: wp_cache_add, wp_cache_close, wp_maybe_load_embeds, wp_cache_decr, the_media_upload_tabs
Does the specified module exist in the Apache config?
Source
<?php
function apache_mod_loaded($mod, $default = false) {
global $is_apache;
if ( !$is_apache )
return false;
if ( function_exists('apache_get_modules') ) {
$mods = apache_get_modules();
if ( in_array($mod, $mods) )
return true;
} elseif ( function_exists('phpinfo') ) {
ob_start();
phpinfo(8);
$phpinfo = ob_get_clean();
if ( false !== strpos($phpinfo, $mod) )
return true;
}
return $default;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- #11604 (apache_mod_loaded() is broken) – WordPress Trac
Therefore I tested that function by looking for mod_rewrite on a server which has mod_rewrite enabled. The test failed, apache_mod_loaded() returned false.
core.trac.wordpress.org - #15044 (apache_mod_loaded fails due to ob_get_clean behavior ...
On some servers, including Wordpress installs hosted by Green Geeks (PHP 5.2. 9: see http://www.greengeeks.com/phpinfo.php), apache_mod_loaded will ...
core.trac.wordpress.org - apache_mod_loaded() WordPress function reference, arguments ...
Does the specified module exist in the Apache config?
queryposts.com - mod rewrite - apache_mod_loaded setting can fubar plugins ...
Apr 7, 2011 ... I had a user recently who reported an issue with my plugin's options page not loading. They would click on the "settings" link but only got a ...
wordpress.stackexchange.com
Gebruikersdiscussies [ wordpress.org ]
- anemene on "Network.php is blank, can't create a network."
- Will on "Network.php is blank, can't create a network."
- Will on "Network.php is blank, can't create a network."
- Will on "Network.php is blank, can't create a network."
- anemene on "Network.php is blank, can't create a network."
- anemene on "Network.php is blank, can't create a network."
- Andrea_r on "Network.php is blank, can't create a network."
- anemene on "Network.php is blank, can't create a network."
- Andrea_r on "Network.php is blank, can't create a network."
- Will on "Network.php is blank, can't create a network."