开发者

How do I recognize if PHP is installed as Module or CGI

开发者 https://www.devze.com 2023-03-17 03:25 出处:网络
how do I know excactly if PHP is used as modul开发者_如何学Goe in Apache or used as CGI? Which configuration param is telling me this in phpinfo() ???

how do I know excactly if PHP is used as modul开发者_如何学Goe in Apache or used as CGI? Which configuration param is telling me this in phpinfo() ???

thx


echo PHP_SAPI;
echo php_sapi_name();

php_sapi_name()

If you prefer phpinfo() (or its cli equivalent php -i) you should find a property Server API on the top. Because you want to know, what handler your apache uses php -i is not an option for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消