Robin Jackson wrote:
>
> If you make the call generic, then it is contingent upon the developer to
> supply the correct information.
>
> In our case we are using the virtualdocumentroot Apache method to
> dynamically allocate virtual hosts....by parsing the requested file (with
> full path) we know the NAME of what we call an orbit, so we have our HOST
> name and can look that up to get the ID. We also know that the orbit (or
> host) will either have the default style "orbits" or a child style based
> upon the style "orbits" that we track.
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)?
Would you expect this to also collect style information?
> A far as the rest of the information
> (author, auth, user, admin) we can get those easily. The only thing I'm
> confused about is argv and argc....are you passing data after the "?" via
> these parameters?
When a midgard page is marked 'active' it will collect what would
usually
be called PATH_INFO, breaking it up into elements separated by '/' and
stripping the trailing '.html' if present. These elements are then put
into
$argv.
I still don't fully understand what you need, but we'll get there.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]