Re: PHP as an NSAPI Filter?
| From: | temp_php at maniacalrage dot net | Date: | Wed, 15 Feb 2006 15:34:42 +0000 |
| Subject: | Re: PHP as an NSAPI Filter? | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-17031@lists.php.net to get a copy of this message | ||
> 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