[nycphp-talk] Apache Auth question
Daniel Kushner
nyphp at websapp.com
Tue Dec 2 12:08:30 EST 2003
Hey,
A directory has an .htaccess with basic httpd authentication.
Example:
AuthType Basic
AuthName "By Invitation Only"
AuthUserFile /usr/local/apache/passwd/passwords
Require user rbowen sungo
How can this authentication be excluded for a subdirectory?
Best,
Daniel
>From hans not junk at nyphp.com Tue Dec 2 12:13:39 2003
Return-Path: <hans not junk at nyphp.com>
Received: from londo.swishmail.com (londo.swishmail.com [209.10.110.95])
by virtu.nyphp.org (Postfix) with ESMTP id ED1A2A85FD
for <talk at lists.nyphp.org>; Tue, 2 Dec 2003 12:13:38 -0500 (EST)
Received: (qmail 57073 invoked by uid 89); 2 Dec 2003 17:13:38 -0000
Received: from unknown (HELO nyphp.com) (hans not junk at nyphp.com@128.122.155.151)
by londo.swishmail.com with AES256-SHA encrypted SMTP;
2 Dec 2003 17:13:38 -0000
Message-ID: <3FCCC889.3060103 at nyphp.com>
Date: Tue, 02 Dec 2003 12:14:49 -0500
From: Hans Zaunere <hans not junk at nyphp.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv:1.5) Gecko/20031007
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: NYPHP Talk <talk at lists.nyphp.org>
Subject: Re: [nycphp-talk] security? we don't need no stinkin security!
References: <20031202163813.17076.qmail at web14302.mail.yahoo.com>
In-Reply-To: <20031202163813.17076.qmail at web14302.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: talk at lists.nyphp.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: NYPHP Talk <talk at lists.nyphp.org>
List-Id: NYPHP Talk <talk.lists.nyphp.org>
List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>,
<mailto:talk-request at lists.nyphp.org?subject=unsubscribe>
List-Archive: <http://lists.nyphp.org/pipermail/talk>
List-Post: <mailto:talk at lists.nyphp.org>
List-Help: <mailto:talk-request at lists.nyphp.org?subject=help>
List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>,
<mailto:talk-request at lists.nyphp.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Dec 2003 17:13:39 -0000
Chris Shiflett wrote:
> --- Tim Gales <tgales at tgaconnect.com> wrote:
>
>>I mean more efficient -- if you can get the same content
>>out with less markup how else do you describe it (other
>>than being more efficient)
>
>
> Maybe it's just a difference of interpretation, but let's take some
> clearer examples:
>
> foo.php:
> <?
> sleep(5);
> echo 'foo';
> ?>
>
> bar.php:
> <?
> sleep(1);
> echo 'barbarbarbarbar';
> ?>
>
> I would say that bar.php is more efficient, but foo.php produces less
> markup.
Not to nit-pick, but why would bar.php be more efficient? foo.php is sleeping, thus taking no CPU cycles. Maybe if foo.php was for( $i = 0; $i < 1000000000; ++$i ); echo 'foo'; ? :)
H
>From hans not junk at nyphp.com Tue Dec 2 12:35:22 2003
Return-Path: <hans not junk at nyphp.com>
Received: from londo.swishmail.com (londo.swishmail.com [209.10.110.95])
by virtu.nyphp.org (Postfix) with ESMTP id A49CFA85FD
for <talk at lists.nyphp.org>; Tue, 2 Dec 2003 12:35:22 -0500 (EST)
Received: (qmail 63966 invoked by uid 89); 2 Dec 2003 17:35:22 -0000
Received: from unknown (HELO nyphp.com) (hans not junk at nyphp.com@128.122.155.151)
by londo.swishmail.com with AES256-SHA encrypted SMTP;
2 Dec 2003 17:35:22 -0000
Message-ID: <3FCCCDA1.8010203 at nyphp.com>
Date: Tue, 02 Dec 2003 12:36:33 -0500
From: Hans Zaunere <hans not junk at nyphp.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv:1.5) Gecko/20031007
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: NYPHP Talk <talk at lists.nyphp.org>
Subject: Re: [nycphp-talk] translating behaviors from JavaScript to PHP
References: <BAY2-DAV43ZCs9ssCsI000061c3 at hotmail.com>
In-Reply-To: <BAY2-DAV43ZCs9ssCsI000061c3 at hotmail.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: talk at lists.nyphp.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: NYPHP Talk <talk at lists.nyphp.org>
List-Id: NYPHP Talk <talk.lists.nyphp.org>
List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>,
<mailto:talk-request at lists.nyphp.org?subject=unsubscribe>
List-Archive: <http://lists.nyphp.org/pipermail/talk>
List-Post: <mailto:talk at lists.nyphp.org>
List-Help: <mailto:talk-request at lists.nyphp.org?subject=help>
List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>,
<mailto:talk-request at lists.nyphp.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Dec 2003 17:35:23 -0000
-sry wrote:
> [ repost - sent to the wrong list ]
>
>
>>Hiya listies,
>>
>>Seems like PHP is a bit of a sledgehammer for web design,
>>but I like it so far :)
Sledgehammer? Maybe an ice-pic...
>>I'm currently giving my brain a rest from the Flash/text
>>protection thingy and revisiting a CSS design issue I'm
>>trying to learn (positioning vs tables). I'm doing this vis a
>>vis my personal web site. Since I like to keep code as
>>modularized as possible, I separated out my JavaScript
>>(for mouseover behavior and other sillyness) into a .js file.
>>As a mechanism for putting my hands on some PHP as I
>>learn it, I figured I'd take the existing page design and
>>behavior and "translate" it into a PHP implementation.
Keep in mind that PHP runs strictly on the server - the browser is never aware of any PHP code. Granted, you can use PHP to generate the client-side code the browser then reads and parses, but translating between Javascript and PHP - in a linear sense - is not possible.
H
More information about the talk
mailing list