astahttpd web server 0.1-beta3 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News astahttpd web server 0.1-beta3 (Default branch)
# 1  
Old 02-08-2008
astahttpd web server 0.1-beta3 (Default branch)

Image astahttpd is a modular Web server for Linux written in pure PHP, mainly targeted for PHP developers. It supports alias directories, URL rewriting, Basic and Digest authentication, gzip and deflate content encoding, virtual hosts (IP and name based), CGI script processing, bandwidth limiting, and add-on modules. License: GNU General Public License v3 Changes:
Digest authentication. A modular architecture. Currenly available modules: mod_auth_basic, mod_auth_digest, mod_bandwidth, mod_cgi_header, mod_cgi, mod_encoding, mod_rewrite, mod_status, and mod_vhost. Bug #1887560 (CGI header was not handled properly), bug #1885235 (errors not properly handled on external gzip), and bug #1885216 (missing compression level on external gzip) have been fixed.Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
PHP_SAPI_NAME(3)							 1							  PHP_SAPI_NAME(3)

php_sapi_name - Returns the type of interface between web server and PHP

SYNOPSIS
string php_sapi_name (void ) DESCRIPTION
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. RETURN VALUES
Returns the interface type, as a lowercase string. Although not exhaustive, the possible return values include aolserver, apache, apache2filter, apache2handler, caudium, cgi (until PHP 5.3), cgi-fcgi, cli, cli-server, continuity, embed, fpm-fcgi, isapi, litespeed, milter, nsapi, phttpd, pi3web, roxen, thttpd, tux, and web- james. EXAMPLES
Example #1 php_sapi_name(3) example This example checks for the substring cgi because it may also be cgi-fcgi. <?php $sapi_type = php_sapi_name(); if (substr($sapi_type, 0, 3) == 'cgi') { echo "You are using CGI PHP "; } else { echo "You are not using CGI PHP "; } ?> NOTES
Note An alternative approach The PHP constant PHP_SAPI has the same value as php_sapi_name(3). Tip A potential gotcha The defined SAPI may not be obvious, because for example instead of apache it may be defined as apache2handler or apache2filter. SEE ALSO
PHP_SAPI. PHP Documentation Group PHP_SAPI_NAME(3)