Last active
August 29, 2015 14:11
-
-
Save Billy-/7e65c3b3e0027259ab63 to your computer and use it in GitHub Desktop.
Mod_rewrite check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$a = ( in_array('mod_rewrite', apache_get_modules()) || strpos(shell_exec('/usr/local/apache/bin/apachectl -l'), 'mod_rewrite') !== false ); | |
echo 'Mod rewrite is ' . ($a ? 'enabled' : 'disabled'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment