PHP options and Information function library: Php_sapi_name

Source: Internet
Author: User
Keywords php_sapi_name php option php Chinese function manual information function library
Tags aliyun function function library html information information function library name php

Php_sapi_http://www.aliyun.com/zixun/aggregation/11696.html ">name

(PHP4 >= 4.0.1)

Php_sapi_name---Returns the interface between Web servo and PHP

Syntax: string php_sapi_name (void)

Description:

Php_sapi_name () returns a lowercase string that describes the interface between the Web server and the PHP (Server API, SAPI). CGI PHP, this string will be "CGI"; Aapache's mod_php, this string will be "Apache" and so on.

Example:

<?php

$inter _type = Php_sapi_name ();

if ($inter _type = = "CGI")

Print "You are using CGI php\n";

Else

Print "are not using CGI php\n";

?>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.