Re: apache httpd + PHP authentication

From: Date: Sun, 19 Oct 2003 19:24:22 +0000
Subject: Re: apache httpd + PHP authentication
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-166678@lists.php.net to get a copy of this message
Chris Shiflett wrote:
A "parser" is called every time a page is accessed. If no page is defined, the home page is loaded. Subsequent pages are linked with
http://dictionary.reference.com/search?q=parser Very amusing.
Okay, "dispatcher" would probably be a better name. It preps the environment before including the page's code.
Is there a way to use a parser as above and still have httpd recognize the need for a name/password?
I'm sure there are many ways. You could check for the .htaccess yourself before including the file, and require HTTP authentication where appropriate. What you can't do, however, is presume that you can write a script that handles requests instead of Apache and magically have your code do everything Apache does. I do *NOT* want to duplicate the httpd functionality, I want to preserve it.
-- jimoe at sohnen-moe dot com

« previous php.general (#166678) next »