★ wanayoo — archive 1999 http://fr.php.net/manual/it/function.php-sapi-name.phpNouvelle recherche | Portail wanayoo
PHP Tuesday, March 20, 2001  
downloads | documentation | faq | support | reporting bugs | links 

search for in the  

lookup:
Manuale PHPManuale PHP
PHP options/infoPHP options/info
 assertassert
 assert-optionsassert-options
 extension_loadedextension_loaded
 dldl
 getenvgetenv
 get_cfg_varget_cfg_var
 get_current_userget_current_user
 get_magic_quotes_gpcget_magic_quotes_gpc
 get_magic_quotes_runtimeget_magic_quotes_runtime
 getlastmodgetlastmod
 getmyinodegetmyinode
 getmypidgetmypid
 getmyuidgetmyuid
 getrusagegetrusage
 ini_alterini_alter
 ini_getini_get
 ini_restoreini_restore
 ini_setini_set
 phpcreditsphpcredits
 phpinfophpinfo
 phpversionphpversion
 php_logo_guidphp_logo_guid
 php_sapi_namephp_sapi_name
 php_unamephp_uname
 putenvputenv
 set_magic_quotes_runtimeset_magic_quotes_runtime
 set_time_limitset_time_limit
 zend_logo_guidzend_logo_guid
 get_loaded_extensionsget_loaded_extensions
 get_extension_funcsget_extension_funcs
 get_required_filesget_required_files
 get_included_filesget_included_files

previousphp_logo_guid
php_unamenext

Last updated: Sat, 17 Mar 2001
view this page in English | Brazilian Portuguese | Czech | Dutch | French | German | Hungarian | Italian | Japanese | Korean | Plain HTML

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.

Esempio 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";
      

previousphp_logo_guid
php_unamenext

Last updated: Sat, 17 Mar 2001
add note | about notes

show source | credits | mirror sites:  

Copyright © 1998-2001 The PHP Group
All rights reserved.
This mirror generously provided by: L'Université Michel de Montaigne Bordeaux III
Last updated: Tue Mar 20 07:01:56 2001 MET