php auto prepend/append by Drago (drago@0x00.org)

Setup:

mkdir /home/httpd/include/
cp auto_prepend.inc auto_append.inc /home/httpd/include/

putting the following in /usr/local/lib/php.ini or php3.ini
auto_prepend_file       = "/home/httpd/include/auto_prepend.inc";
auto_append_file        = "/home/httpd/include/auto_append.inc";

To use:
Simply create prepend.inc or append.inc respectively
and drop code/html in there.

For you coldfusion programmers out there, prepend.inc is the same
as application.cfm.

The code will walk the directory tree backwards until it finds the first
prepend/append.inc, when it does it will include it.  If it does not find
one it will simply return with no includes.  The *FIRST* one found will be
included, so if you want to include one further in the tree you will have
to manualy include it in the prepend/append.inc thats higher up.

If you have any questions/comments, please email me.

-Drago
drago@0x00.org
