[nycphp-talk] Cool new feature on php.net
chun_lam at hotmail.com
Tue Mar 4 22:01:26 EST 2003
Can you describe this process in detail?
----Original Message Follows----
From: Sterling Hughes <sterling at bumblebury.com>
Reply-To: talk at nyphp.org
To: NYPHP Talk <talk at nyphp.org>
Subject: Re: [nycphp-talk] Cool new feature on php.net
Date: Mon, 3 Mar 2003 14:27:54 -0500
Received: from parsec.nyphp.org ([184.108.40.206]) by
mc6-f28.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 3 Mar
2003 11:28:13 -0800
Received: from nyphp.org (parsec.nyphp.org [220.127.116.11])by
parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h23JRsEF013683for
<chun_lam at hotmail.com>; Mon, 3 Mar 2003 14:28:12 -0500 (EST)(envelope-from
null at nyphp.org)
Message-Id: <200303031928.h23JRsEF013683 at parsec.nyphp.org>
X-List-Software: Paralist 0.6
List-Owner: <mailto:listmaster at nyphp.org>
Organization: New York PHP
X-Mailer: Paramail 0.5
Return-Path: null at nyphp.org
X-OriginalArrivalTime: 03 Mar 2003 19:28:14.0078 (UTC)
> Hey! This strikes me as a really great way to mix dynamic content with
> static. The way php.net enables this feature is to use an Apache
> directive to invoke a script if the requested page isn't found:
> ># Handle errors with local error handler script
> > ErrorDocument 401 /error/index.php
> But another way to look at this is just the opposite: for most requests,
> I want the script to generate a page dynamically based on the request.
> But every now and then (a cache for popular pages, say, or an override)
> a page will actually exist at the requested URI, which will then be
> Off to experiment I go!
Yep, you can do the same thing with a mod_rewrite handler btw (it will
give you more control at the sake of portability.)
> Adam Fields wrote:
> >On Mon, Mar 03, 2003 at 01:56:54PM -0500, Adam Fields wrote:
> >>Cool, yes. Not new - they've been doing this for quite some time now.
> >Oh, also - more details (including instructions on how to set up
> >similar things for your own Apache server) are here:
> If US military spending was cut by 1/6th, we could spend $100 billion on
the arts, with change.
> Imagine: culture instead of killing.
"Reductionists like to take things apart. The rest of us are
just trying to get it together."
- Larry Wall, Programming Perl, 3rd Edition
--- Unsubscribe at http://nyphp.org/list/ ---
The new MSN 8: smart spam protection and 2 months FREE*
More information about the talk