123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- This is very beta documentation. Clearly better stuff can and will follow.
- INTRO:
- apache_hooks is a full super-set enhancement of the apache 1.3 sapi that allows for
- php code to be run on the apache request object at every stage of the apache
- request. It supports all of the apache 1.3 sapi commands and configurations, and
- additionally supports the following httpd.conf directives:
- HTTPD.CONF DIRECTIEVS:
- phpRequire /path/to/file = requires a file at the beginning of an
- initial apache request
- phpUriHandler /path/to/file = registers a hook that will run the
- specified file at the uri translation stage of the apache request
- phpUriHandler Class::Method = registers a hook to run Class::Method at
- the uri translation stage of the apache request
- phpPostReadHandler /path/to/file = hook for post-read phase
- phpPostReadHandlerMethod Class::Method
- phpHeaderHandler = hook for header parsing phase
- phpHeaderHandlerMethod
- phpAuthHandler = hook for authentication phase
- phpAuthHandlerMethod
- phpAccessHandler = hook for access control phase
- phpAccessHandlerMethod
- phpTypeHandler = hook for Type Checking phase
- phpTypeHandlerMethod
- phpFixupHandler = hook for 'fixup' phase
- phpFixupHandlerMethod
- phpLoggerHandler = hook for logging phase
- phpLoggerHandlerMethod
- AddHandler php-script = set's up a special type handler
- phpResponseHandler /path/to/file = sets file to be called to handle
- response phase
- phpResponseHandlerMethod Class::Method
- All handlers may be stacked, i.e. you can list multiple handler directives
- in a single scope and they will be run in order.
- EXAMPLES:
- So, to set up a 'hello world' location handler (so that any request to
- /hello
|