Re: .htaccess management

From: Date: Fri, 11 Aug 2000 00:06:57 +0000
Subject: Re: .htaccess management
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11246@lists.php.net to get a copy of this message
Lars Holm Nielsen wrote: > I would guess that you could just send an header with the error code 401. > > header("HTTP/1.0 401 Unauthorized"); Yes, I suppose I could, but by doing so, a window appears telling the user Authorization failed. Not quite what I wanted. Maybe I should redo the whole thing based on what I really want to do: - Have a publicly available (and readable) index.php3 which includes a login section - Based on the user name, it will then display whatever pertinent information I want to serve, with, at the bottom a Log Out option that will take them back to the main index.php3 where they can login again (possibly with a different username). I don't necessarily want to make something as big and complicated that will use a user DB and all. I just want something plain and simple, which is why I started with .htaccess, but .htaccess is somewhat persistent, unless a 401 header is send (which will then popup the Authorization Failed message - blah) AMK4 -- W | | I haven't lost my mind; it's backed up on tape somewhere. |____________________________________________________________________ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130 SysAdmin / Websmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . eFax 248.671.0909 http://www.pcraft.com . 3550 Arapahoe Ave .................. . . . . Boulder, CO 80303

« previous php.general (#11246) next »