wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
apache_mod_loaded › WordPress Function
Seit2.5.0
Veraltetn/v
› apache_mod_loaded ( $mod, $default = false )
Parameter: (2) |
|
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Does the specified module exist in the Apache config?
Ähnliche Funktionen: wp_cache_add, wp_cache_close, wp_auth_check_load, wp_is_file_mod_allowed, rest_api_loaded
Quellcode
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, true ) ) { return true; } } elseif ( function_exists( 'phpinfo' ) && false === strpos( ini_get( 'disable_functions' ), 'phpinfo' ) ) { ob_start(); phpinfo( 8 ); $phpinfo = ob_get_clean(); if ( false !== strpos( $phpinfo, $mod ) ) { return true; } } return $default; }