Re: [PHP] .htaccess management From: Ashley M. Kirchner (ashley <email protected>)
Date: 08/10/00

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 <email protected>>   .   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

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>