skt wrote in php

I am trying to determine if a module such as mod_rewrite is compiled into my version of apache. I would like to do this with a small Boolean function rather than phpinfo() or with htaccess, if at all possible.

I looked at $_SERVER, and get_loaded_extensions(), but I wasn’t able to figure it. Any help would be greatly appreciated.

Thanks :)