Posts Tagged ‘mod_rewrite’

26 05 2011

PHP检测mod_rewrite

bigCat Posted in PHP - 0 Comment
<?php\r\nfunction module_enabled($module){\r\n$modules = apache_get_modules();\r\nreturn in_array($module, $modules);\r\n}\r\nif(module_enabled("mod_rewrite")){\r\necho "mod_rewrite enabled.";\r\n}\r\n?>
Host: (miao) | Word: Press | Code: HTML5