From owner-freebsd-questions Tue Oct 16 13:34: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from marlo.eagle.ca (marlo.eagle.ca [209.167.16.10]) by hub.freebsd.org (Postfix) with ESMTP id B3E3337B401 for ; Tue, 16 Oct 2001 13:34:04 -0700 (PDT) Received: from phantom (staff.eagle.ca [209.167.16.15]) by marlo.eagle.ca (8.11.3/8.11.3) with SMTP id f9GKXS396118; Tue, 16 Oct 2001 16:33:29 -0400 (EDT) (envelope-from freymann@scaryg.shacknet.nu) Message-ID: <011201c15682$2f135d60$0f01a8c0@phantom> From: "Gerald T. Freymann" To: "Linh Pham" Cc: References: <20011016131318.M33262-100000@q.closedsrc.org> Subject: Re: quick php/apache question re the tags Date: Tue, 16 Oct 2001 16:36:07 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > That's the why it's supposed to work. Apache handles .htm/.html files by > just reading them in and spitting the entire file, unchanged back to > the browser. Makes sense. > When it enoucnters a .php file, it reads it in and sends to the PHP > parser and Apache gets back the processed file and sends it to the > browser. Gotcha. > Why change it? Awh, to the meat of the problem. I'm working on an "admin portal" thing for work. I would like users to have to "log in" before they can access the admin pages. Right now I have simply used .htaccess to protect the directory and those below, and I'm thinking this may be the way to go as it's super easy, only requiring shell access to add usernames and passwords. I wonder what is better? passwording protecting a site with .htaccess or using some other kind of utility like http://www.phpsecurepages.f2s.com/ ? The latter pretty well requires every file to end in .php but can offer some nice web-based user management tools. .gf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message