★ wanayoo — archive 1999 http://www.php.net/manual/function.php-sapi-name.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to PHP options/info
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageHungarian version of this page
PHP options/info
* error_log
* error_reporting
* extension_loaded
* getenv
* get_cfg_var
* get_current_user
* get_magic_quotes_gpc
* get_magic_quotes_runtime
* getlastmod
* getmyinode
* getmypid
* getmyuid
* getrusage
* phpinfo
* phpversion
* php_logo_guid
* php_sapi_name
* putenv
* set_magic_quotes_runtime
* set_time_limit
* zend_logo_guid
* get_loaded_extensions
* get_extension_funcs
* get_required_files
* get_included_files
Manual: php_sapi_name
View the source code for this pageSearch the site



Previous page
 php_logo_guid
 Updated
Sat, 12 Aug 2000
putenv 
Next page


php_sapi_name

(PHP4 >= 4.0.1)

php_sapi_name --  Returns the type of interface between web server and PHP

Description

string php_sapi_name (void)

Php_sapi_name() returns a lowercase string which describes the type of interface between web server and PHP (Server API, SAPI). In CGI PHP, this string is "cgi", in mod_php for Apache, this string is "apache" and so on.

Example 1. Php_sapi_name() Example


$inter_type = php_sapi_name();
if ($inter_type == "cgi")
    print "You are using CGI PHP\n";
else
    print "You are not using CGI PHP\n";
      


 About Notes


Previous page
 php_logo_guid
 Updated
Sat, 12 Aug 2000
putenv 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.