On Fri, 13 Jul 2001, Carlos Costa Portela wrote:

> > http://www.apache.org/websrc/cvsweb.cgi/httpd-2.0/modules/filters/mod_include.c
>
>       Thank you very much. Do you think that is this a good aproach to a
> complex web page? (using items like <banner>, <shop> or <team_info
> id="1">) ?

It's one approach.  All it really gains you is keeping you from
duplicating functionality that's already built in to mod_include,
including the parser and the pre-defined SSI tags.  But it's not the
easiest approach and might not be the most appropriate in this case,
especially given the below:

>       can I access to my databases from mod_include code?

You can if you write the interface for it.  =-)

Consider using PHP.  It's got drivers for lots of DB's built in, and
instead of defining custom tags, you can just have a library of
pre-defined functions called banner(), shop(), etc.  Stick a call to the
appropriate function in a PHP tag, and the function dumps out the
necessary HTML.  That's way easier to code and maintain and probably a
better match for what you're trying to do.

--Cliff


--------------------------------------------------------------
   Cliff Woolley
   [EMAIL PROTECTED]
   Charlottesville, VA


Reply via email to