Last active
March 25, 2017 12:54
-
-
Save bulfaitelo/33d5ff7072783171e97a8323829520be to your computer and use it in GitHub Desktop.
Verificando se está ativo o mod_rewrite do Apache
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
<?php | |
if(!function_exists('apache_get_modules') ){ phpinfo(); exit; } | |
$res = 'Módulo não disponível'; | |
if(in_array('mod_rewrite',apache_get_modules())) | |
$res = 'Módulo disponível'; | |
?> | |
<html> | |
<head> | |
<title>Verificando disponibilidade do mod_rewrite!</title> | |
</head> | |
<body> | |
<p><?php echo apache_get_version(),"</p><p>mod_rewrite $res"; ?></p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment