Detect apache mod with PHP
- /**
- * return true if the module $name is activated in apache
- *
- * @param string $name module name
- * @return boolean
- * @author Samdha <contact@samdha.net>
- **/
- function detect_apache_mod($name) {
- if ($save !== false) {
- echo $save;
- }
- }