Google Answers Logo
View Question
 
Q: NSAPI + PHP + add-header? ( No Answer,   1 Comment )
Question  
Subject: NSAPI + PHP + add-header?
Category: Computers > Programming
Asked by: spishack-ga
List Price: $69.50
Posted: 16 Feb 2006 06:51 PST
Expires: 23 May 2006 06:11 PDT
Question ID: 446513
Okay, here's the issue:

I have a client who has a HUGE site made up of nearly all static HTML
pages. They're now implementing a user-management system wherein
people will have to pay for content, so they'll need to log in to view
these static pages.

On top of that, there are different levels of membership, so there
will be a matrix of permissions for each area. Most importantly, the
client doesn't want to change any of their existing pages, or create
them differently in the future.

This is running on iPlanet 6.0 on Sun Sparc (Solaris 8).

Here's what I want to do (is this feasable?)

- Install PHP as NSAPI filter
- Use the predefined SAF at the Service Stage: add-header to include a PHP file
- Run all of my permissions logic / cookie checking, etc, with that PHP file

The idea here is that my PHP file will check the user's cookie, parse
the XML that includes all the permissions info, check the user and
either return true and allow the user to view the requested page, or,
if the user doesn't have rights, forward them to a log in page. This
will be running on EVERY request.

Will this work? Will this be painfully slow? This site gets millions
of views a month, and speed is important. If this doesn't work, is
there another easy way to run a PHP file before delivering any request
on the server?

Thanks!
Answer  
There is no answer at this time.

Comments  
Subject: Re: NSAPI + PHP + add-header?
From: drighten-ga on 20 Feb 2006 20:48 PST
 
You may want to consider this,
http://www.zend.com/sun/?article=/sun/index.php&kind=&id=6790&open=1&anc=0&view=1.

Good luck!

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy