开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜