Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

php_sapi_name

(PHP 4 >= 4.0.1, PHP 5)

php_sapi_name --  Zeigt die Schnittstelle zwischen Webserver und PHP an

Beschreibung

string php_sapi_name ( void )

php_sapi_name() zeigt die Schnittstelle zwischen Webserver und PHP (Server API, SAPI) als kleingeschriebene Zeichenkette an. Bei CGI PHP ist diese Zeichenkette "cgi", bei mod_php für Apache ist die Zeichenkette "apache" usw.

Beispiel 1. php_sapi_name() Beispiel

$inter_type = php_sapi_name();
if ($inter_type == "cgi")
    print "Sie benutzen CGI PHP\n";
else
    print "Sie benutzen nicht CGI PHP\n";

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "PHP Handbuch". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.