Goldenweb.it homepage

ANNUNCI | DIRECTORY | FONTS | ICONE | NEWSGROUPS | TOP25 | WALLPAPERS

English version  

Fotografo matrimonio
Un team di fotografi professionisti specializzati nei servizi fotografici per matrimoni, operante in tutta Italia.
Info Franchising | Tutto per aprire un Franchising
Franchising da 13 anni con marchi e notizie: Info Franchising. Testata Giornalistica. Franchising in Italia ed idee per mettersi in proprio.

GoldenWeb.it Directory "Premium" Links - Il tuo link qui...



php_sapi_name

(PHP 4 >= 4.0.1, PHP 5)

php_sapi_name --  Restituisce il tipo di interfaccia tra il PHP ed il server web

Descrizione

string php_sapi_name ( void )

php_sapi_name() restituisce un testo minuscolo che descrive il tipo di interfaccia tra il PHP ed il server web (Server API, SAPI). In caso di CGI PHP, la stringa è "cgi", nel caso si usi mod_php per Apache, il testo sarà "apache" e così via.

Esempio 1. Esempio di uso di php_sapi_name()

<?php
$sapi_type
= php_sapi_name();
if (
$sapi_type == "cgi") {
    echo
"Si usa CGI PHP\n";
} else {
    echo
"Non si usa CGI PHP\n";
}
?>