Search Results
Examples ¶ Example #1 php_sapi_name () example This example checks for the substring cgi because it may also be cgi-fcgi.
- Getlastmod
Gets the time of the last modification of the main script of...
- Getrusage
In a web environment where you have long running apache...
- Getmygid
getmygid (PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) getmygid —...
- Phpcredits
This function prints out the credits listing the PHP...
- Getmyinode
getmyinode (PHP 4, PHP 5, PHP 7, PHP 8) getmyinode — Gets...
- Getlastmod
Retourne une chaîne en minuscule qui décrit le type d'interface (l'API, SAPI serveur) que PHP utilise. Par exemple, en PHP CLI, cette chaîne sera "cli" tandis qu'avec Apache, elle pourra avoir plusieurs valeurs différentes suivant le SAPI exact utilisé. Les valeurs possibles sont listées ci-dessous.
Returns a lowercase string that describes the type of interface (the Server API, SAPI) that PHP is using. For example, in CLI PHP this string will be "cli" whereas with Apache it may have several different values depending on the exact SAPI used. Possible values are listed below.
php_sapi_name Supported Versions: PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8 Returns the type of interface between web server and PHP
Returns a lowercase string that describes the type of interface (the Server API, SAPI) that PHP is using. For example, in CLI PHP this string will be "cli" whereas with Apache it may have several different values depending on the exact SAPI used. Possible values are listed below.
Retourne une chaîne en minuscule qui décrit le type d'interface (l'API, SAPI serveur) que PHP utilise. Par exemple, en PHP CLI, cette chaîne sera "cli" tandis qu'avec Apache, elle pourra avoir plusieurs valeurs différentes suivant le SAPI exact utilisé. Les valeurs possibles sont listées ci-dessous.
People also ask
What is PHP_SAPI_name?
What does CLI PHP return?
What is the difference between PHP_SAPI_name & PHP_SAPI?
Can PHP CLI be called from a command line?
Description php_sapi_name(): string|false Returns a lowercase string that describes the type of interface (the Server API, SAPI) that PHP is using. For example, in CLI PHP this string will be "cli" whereas with Apache it may have several different values depending on the exact SAPI used. Possible values are listed below.
