Re: [PHP] Interesting question re HTTP Ranges and PHP

2003-07-17 Thread Dan Goodes
Hi Chris, a million thanks for the help there. That's what i thought I'd have to do. What I'm doing now is inspect the Range header to pull out the start and end, and then deduce the length, and then using fopen, fseek and fread to open the file and read from a certain offset for a certain leng

Re: [PHP] Interesting question re HTTP Ranges and PHP

2003-07-17 Thread Curt Zirzow
Dan Goodes <[EMAIL PROTECTED]> wrote: > Hi folks, > > I currently have an interesting dilemma - any help is appreciated (if > possible, CC directly to [EMAIL PROTECTED] as well as the list). > > What Ive got is a PHP wrapper script that performs authetication, and uses > "readfile()" to return

Re: [PHP] Interesting question re HTTP Ranges and PHP

2003-07-16 Thread Chris Shiflett
--- Dan Goodes <[EMAIL PROTECTED]> wrote: > What I want is for the PHP script to read ALL the headers for the > request (in particular, RANGE headers), and then return the relevant > portion of the file. Can this be done fairly simply? I think you will find all header in the $_SERVER array. It is

[PHP] Interesting question re HTTP Ranges and PHP

2003-07-16 Thread Dan Goodes
Hi folks, I currently have an interesting dilemma - any help is appreciated (if possible, CC directly to [EMAIL PROTECTED] as well as the list). What Ive got is a PHP wrapper script that performs authetication, and uses "readfile()" to return the requested file. So a user requests /path/to/fil