Php running as apache module or CGI binary?

Hi guys,

How to find whether php is running as a apache module or a CGI binary?. I did look into phpinfo, but I don’t know what indicates either of that.

( I heard if php runs as apache module, you would be able to use both custom php ini and dot htaccess files. If php is run as a CGI binary only php ini could be used. )

The server i am working on is not configured yet to run php code in html files. I tried this;

#For web servers using PHP as apache module:
AddType application/x-httpd-php <dot>html <dot>htm <dot>php

in a dot htaccess file, but it opens a open/save dialog box for the html file.

Tried this;

#For web servers running PHP as CGI:
AddHandler application/x-httpd-php <dot>html <dot>htm <dot>php

in the dot htaccess file, i see no reaction.

Tried this;

;CGI PHP WRAPPER FOR CUSTOM PHP INI
AddHandler phpini-cgi <dot>php <dot>htm <dot>html
Action phpini-cgi /cgi-bin/php5-custom-ini<dot>cgi

in a custom php ini , no reaction.

Tried this;

;FAST-CGI SETUP WITH PHP-CGI WRAPPER FOR CUSTOM PHP INI
AddHandler fastcgi-script <dot>fcgi
AddHandler php-cgi <dot>php <dot>htm
Action php-cgi /cgi-bin/php5-wrapper<dot>fcgi

in a custom php ini , no reaction.

any clue?.
thank you

phpinfo(), server api