php_sapi_name

php_sapi_name

(PHP 4 >= 4.0.1, PHP 5)

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.

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";
}
?>

See also PHP_SAPI.



Links
Bluefish $6.95/mo
  • 6GB Diskspace
  • 100GB Bandwidth
  • PHP Perl MySQL SSI CGI SSL
  • Free Domain
  • No Setup Fees
  • No Hidden Fees

StartLogic $5.95/mo
  • 200GB Diskspace
  • 2000GB Bandwidth
  • Host 10 Domains
  • CGI PHP MySQL
  • eCommerce Enabled
  • 30 Day Money Back Guarantee

IX Web Hosting $6.45/mo
  • 400GB Diskspace
  • 2500GB Bandwidth
  • Host 8 Domains
  • PHP Perl CGI SSI
  • MySQL PostgreSQL
  • 3 Free Domain For Life
  • Additional costs for Windows plan + $2.50:ASP/.NET, Cold Fusion, ODBC/DSN, MSSQL



Partners


Quick Search
Platform

Price

Diskspace

Bandwidth


 Advance Search
 Show All Companies

Hosting Companies

Reference & Manual

Free Sitemap Generator Host Login/Register | Contact Us | Terms | Add Links
Thumbnails by Thumbshots.org © 2002-2012 CheapHostDir.com