[nycphp-talk] Cool new feature on php.net
CHUN-YIU LAM
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 ([66.250.131.26]) 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 [66.250.131.26])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)
X-Message-Info: dHZMQeBBv44lPE7o4B5bAg==
Message-Id: <200303031928.h23JRsEF013683 at parsec.nyphp.org>
X-Paralist-Archived: <http://nyphp.org/list/paralist_archive.php?L_mid=3288>
X-List-Software: Paralist 0.6
List-ID: <nyphptalk.nyphp.org>
List-Owner: <mailto:listmaster at nyphp.org>
List-Archive: <http://nyphp.org/list/paralist_archive.php?L_lid=2>
List-Subscribe: <http://nyphp.org/list/>
List-Unsubscribe: <http://nyphp.org/list/>
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)
FILETIME=[08B181E0:01C2E1BB]
> 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
served.
>
> 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.)
-Sterling
> chris.
>
>
>
> 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:
> >
> >http://www.php.net/urlhowto.php
> >
> >
> >
>
>
> --
> 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*
http://join.msn.com/?page=features/junkmail
More information about the talk
mailing list