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.
 
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论