this is the 'request_handler'-support patch for php. it applies to php-4.0.6. this patch only covers Apache, and currently does not work for anything else. to apply the patch: chdir into the base directory of your php-4.0.6 source directory. there, enter this command (e.g. cd /tmp/php-4.0.6) : patch -p1 < /tmp/request_handler.diff where "/tmp/request_handler.diff" is the full path to the diff file. after patching, you - of course - need to recompile and reinstall php. then, you can use the following to register a request_handler for VirtualHosts, Directories, Locations... php_value request_handler /www/foo.php _EVERY_ request handled by PHP below the directory the request_handler is registered for will be passed to your /www/foo.php script (everybody knowing mod_perl is familiar with this); everybody else who does not yet know what is mean is welcome to test and experiment with this. --lukas schroeder