Robin Jackson wrote:
> >So if I understand correctly you want a midgard function that
> >establishes
> >the database connection leaving a situation much like the start of a
> >midgard page execution? Something like mgd_connect($host, $port,
> >$prefix)?
Somewhere here you'd also need a database username and password.
> >Would you expect this to also collect style information?
>
> Exactement
But this could only collect host-related style information, since
no midgard page would be relevant for the request.
> Then with this mgd_connect(whatever arguments you need) we can pass
> $argv/$argc or we could just pass the URI back to you and you can parse it
> back into those elements.
Hmmm... starting where? The argv elements do not include the host prefix
and the URI to the active page itself. Supplying them yourself will be
no
problem of course.
> Bottom line is you give us a call that allows us
> to "midgardize" a page, which is totally KEWL.
>
> >I still don't fully understand what you need, but we'll get there.
>
> I can see the spark in your eye from here!
:) It could also be the sleep deprivation and caffeine overdose.
This all is not undoable. Although it will probably mean having to break
out functionality that is currently in mod_midgard and moving that into
a library. I'm pondering whether something like this would go into
midgard-lib or a separate library; midgard-lib would be more general
but we'd need to do stuff with callbacks. The separate library would
allow us to do direct calls to apache functionality. Hmm. I don't
even know if we can do a library that depends on apache. Needs looking
into.
There is of course also the possibility of defining a new mimetype
(something
like x-midgard-mixed or whatever), have this handled by mod_midgard,
which sets
up the database connection and changes the request type to
application/x-httpd-php
or application/x-httpd-php3 and passes on the request, which will make
PHP pick
it up.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]