[PHP-INSTALL] PHP as an NSAPI Filter?

2006-02-13 Thread temp_php
I need to do some user authentication using cookies and permissions stuff on an
iPlanet platform, and the client prefers me to use NSAPI filters. I know PHP can
be compiled as an NSAPI filter, but is it then full capable? 

What I mean is, once compiled as an NSAPI filter, can I do ANYTHING using PHP
that will then be included on every request automatically, before parsing the
request?

Basically, I need to do the following (all before returning content to the
client and on EVERY request):

1. Check user's cookies.
2. Grab some XML from the server and check user's cookie and requested file
against XML matrix of permissions.
3. Validate permissions and either send user through or send them to login page.

Is this doable? This is urgent--please help!

TIA


Re: [PHP-INSTALL] PHP as an NSAPI Filter?

2006-02-15 Thread temp_php
> Basically, I need to do the following (all before returning content to the
> client and on EVERY request):
>
> 1. Check user's cookies.
> 2. Grab some XML from the server and check user's cookie and requested file
> against XML matrix of permissions.
> 3. Validate permissions and either send user through or send them to login
> page.
>
> Is this doable? This is urgent--please help!

I should be more clear here--I don't want to parse files on the server AS php, I
want to run PHP before
every request is loaded. Therefore, if a client requests blah.html, I want
this.php to run FIRST and have the
power to redirect.

Does anyone know if it works like this?

g