File: WISHLIST

package info (click to toggle)
php3 1%3A3.0.5-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,348 kB
  • ctags: 9,086
  • sloc: ansic: 76,362; sh: 2,333; php: 1,329; yacc: 1,148; makefile: 970; perl: 763; cpp: 529; awk: 90; sql: 11
file content (17 lines) | stat: -rw-r--r-- 914 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- Persistant per-process scripting

  Apache 1.3 has added things that makes this much easier than before.
  The module structure now contains a child_init hook and a child_exit 
  hook where you can register functions to be called when an httpd
  process starts up and when one shuts down (due to MaxRequestsPerChild 
  or a Kill).  The only real trick now is to come up with some sort of
  syntax for specifying what to do from the child_init call and the
  child_exit call.

  One idea is to be able to add a <PHP>...</PHP> block to the Apache
  httpd.conf file which would somehow define a series of PHP statements
  to be executed from the child_* calls.  One for startup and another
  block for shutdown.  These blocks would work with the per-process
  memory pool, so any variables initialized here would have a lifespan
  equal to that of the httpd process.  Basically request-spanning
  global variables.