Re: [Nolug] php related question.

From: Tim Kelley <tpk_at_23rdward.org>
Date: Tue, 11 Mar 2003 07:12:42 -0600
Message-Id: <200303110712.42936.tpk@23rdward.org>

On Tuesday 11 March 2003 2:20 am, Pietu wrote:

Hey,

Just googling a bit I found this -

http://httpd.apache.org/docs-2.0/filter.html

but don't know about 1.3.x.

> > At first glance that doesn't look like anything php should have
> > it's hands in. If its an application layer issue, why not handle
> > it there (i.e. apache)?
>
> How would that be handled in apache?
>
> I think some additional information is needed. The download item is
> being read from the database. This is why I need to use PHP as a
> "delivery" method.
>
> If the file would be on the harddrive, apache would handle this
> byte-range by itself. Businesswise this would be unsuitable solution
> as then the file would stay on the harddrive for somebody to
> re-distribute the link.
>
> Writing a file to the harddrive when requested, could also be done,
> but after the download, there would be nothing to initiate the script
> to delete this file off the hd.
>
> This is definitely a quite interesting situation.
>
> btw, I already have a PHP script to correctly handle files UNDER 8k.
> I have no clue how to go above 8k. And this byte range request does
> not work all the time.
>
>
> P
>
> > On Saturday 08 March 2003 12:02 pm, Pietu wrote:
> > > This is all documented in HTTP1.1 and it is a standard
> > > webserver<->client behavior, but for some reason I cant find a
> > > way to make PHP to detect it. There must be some way since all
> > > this interactivity from the initial connection to the apache is
> > > recorded to the logs.
> >
> > At first glance that doesn't look like anything php should have
> > it's hands in. If its an application layer issue, why not handle
> > it there (i.e. apache)?
> >
> > --
> > Tim Kelley
> > tpk at 23rdward dot org
> > ___________________
> > Nolug mailing list
> > nolug@nolug.org
>
> ___________________
> Nolug mailing list
> nolug@nolug.org

-- 
Tim Kelley
tpk at 23rdward dot org
___________________
Nolug mailing list
nolug@nolug.org
Received on 03/11/03

This archive was generated by hypermail 2.2.0 : 12/19/08 EST