> 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