How to get the type of interface between web server and PHP in PHP

1 Answer

0 votes
$sapi_type = php_sapi_name();
if (substr($sapi_type, 0, 3) == 'cgi') 
    echo "CGI PHP";
else 
    echo "Not CGI PHP";


/*
run:
    
CGI PHP 

       
*/

 



answered Jul 14, 2016 by avibootz

Related questions

...