[thelist] includes (sub question)
j.d. welch
so.there at showtunepink.com
Mon Feb 10 17:47:01 CST 2003
On Monday, February 10, 2003, at 06:23 PM, Ken Schaefer wrote:
> Better would be to create re-usable routines (or classes) to handle
> this for
> you, rather than having inline includes. At a minimum:
>
> <!-- #include virtual="/inc/HTML/WritePage.asp" -->
> <html>
> <head>
> <% Call WriteHeader() %>
> <head>
>
> <body>
> <% Call WriteBody() %>
> </body>
> </html>
absolutely. fwiw, an even more clever way to include the library (with
php) is to place something like
php_value auto_prepend_file write_page.inc
in an .htaccess file. if placed in your web root, you can make a
function library available to every page in the hierarchy, or apply a
standard header, etc. without an include(); statement on every page.
one of my favorite obscure-ish tricks.
-jd
------------------------------------------------------------------
J.D. Welch | so.there at showtunepink.com
graphic designer | http://www.showtunepink.com
web developer | http://kitschparade.ath.cx
------------------------------------------------------------------
More information about the thelist
mailing list