Ferenc Engard wrote:
> > You mean you want to check from the running script whether the page is
> > being served from the database? Or whether the script runs under a
> > virtualhost that is set up for Midgard requests?
>
> The first. Or the second. :-) What is the difference?
The first says 'is this a midgard request'. The other says 'can this
virtualhost potentially service midgard request'.
> If in a virtualhost, then it is served from db and vice versa, no?
No necesarily. When activated, midgard will look in its database to
see if it can serve the request, and if not, it will allow apache to
serve files from that same vhost. So you can have a mixed Midgard +
files host. I use it myself too.
> Anyway, I am now using the
>
> (!function_exists("mgd_get_midgard") || mgd_get_midgard()==0)
>
> condition to check it is _not_ running under midgard, and seems good.
Yep. If the request is not a midgard request, most functions (all for
I know) will return FALSE (aka 0).
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]