php_sapi_name --
Returns the type of interface between web server and PHP
Syntax
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
<?php $sapi_type = php_sapi_name(); if (substr($sapi_type, 0, 3) == 'cgi') { echo "You are using CGI PHP\n"; } else { echo "You are not using CGI PHP\n"; } ?>
Php php sapi name Function syntax tag
php sapi name php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php php sapi name syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.