★ wanayoo — archive 1999 http://fr.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
English version of this pageGerman version of this pageJapanese version of this page
Italian version of this pageFrench version of this pageHungarian version of this page
Spanish version of this page is not availableDutch version of this pageBrazilian Portuguese version of this page
Korean version of this pageCzech version of this page
PHP options/info
* assert
* assert_options
* extension_loaded
* dl
* getenv
* get_cfg_var
* get_current_user
* get_magic_quotes_gpc
* get_magic_quotes_runtime
* getlastmod
* getmyinode
* getmypid
* getmyuid
* getrusage
* ini_alter
* ini_get
* ini_restore
* ini_set
* phpcredits
* phpinfo
* phpversion
* php_logo_guid
* php_sapi_name
* php_uname
* putenv
* set_magic_quotes_runtime
* set_time_limit
* zend_logo_guid
* get_loaded_extensions
* get_extension_funcs
* get_required_files
* get_included_files

  Thanks to:
 Chek.com
 easyDNS
 VA Linux Systems

  Related sites:
Apache
MySQL
PostgreSQL
Zend Tech.

  Community:
LinuxFund.org
OSDN
Manual: php_sapi_name
View the source code for this pageSearch the site



Previous page
 php_logo_guid
 Updated
Mon, 08 Jan 2001
php_uname 
Next page


php_sapi_name

(PHP 4 >= 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


$sapi_type = php_sapi_name();
if ($sapi_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
Mon, 08 Jan 2001
php_uname 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
France
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.