Submitted by Kiran on Sat, 12/05/2009 - 11:59
PHP is not only available for many different operating systems, but it also offers native interfaces to a range of different Server APIs, or SAPIs in PHP lingo. The most common PHP SAPI is the Apache 1.3 module; others are CGI, CLI, the IIS filter, the embeddable version of PHP,and so on.
Some SAPIs offer PHP functions that are available only in that SAPI.
For example, the Apache 1.3 SAPI offers a function called apache_note() to
pass information to other Apache modules.
Table below shows some SAPI-specific functions.
| Function | SAPI Layers that Define It |
| ApacheRequest (class) | apache_hooks |
| apache_lookup_uri | apache, apache_hooks, apache2filter |
| apache_request_headers | apache, apache_hooks, apache2filter |
| apache_response_headers | apache, apache_hooks, apache2filter |
| apache_note | apache, apache_hooks, apache2filter |
| apache_setenv | apache, apache_hooks, apache2filter |
| apache_getenv | apache, apache_hooks |
| apachelog | apache, apache_hooks |
| apache_child_terminate | apache, apache_hooks |
| apache_exec_uri | apache, apache_hooks |
| getallheaders | aolserver, apache, apache_hooks,apache2filter |
| smfi_setflags | milter |
| smfi_settimeout | milter |
| smfi_getsymval | milter |
| smfi_setreply | milter |
| smfi_addheader | milter |
| smfi_chgheader | milter |
| smfi_addrcpt | milter |
| smfi_delrcpt | milter |
| smfi_replacebody | milter |
| virtual | apache, apache_hooks, apache2filter |
»
- Kiran's blog
- 675 reads













Post new comment