Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-02-04 Thread szalinski
Well thanks again, but I already know what the problem is, it is the response headers being added to the ouput file. I just tried with a different code and it seems to output the file ok, so i must be going wrong somewhere in the order in which i output headers and so on. i'm gonna keep w

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-02-04 Thread Richard Lynch
On Fri, February 1, 2008 7:45 pm, szalinski wrote: > On Thu, 31 Jan 2008 07:13:55 -, Per Jessen <[EMAIL PROTECTED]> > wrote: > Well I got it to work, much thanks to Richard Lynch, but now everytime > I > download a file, it is corrupt. For example, when I download small > .rar > file, just to t

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-02-03 Thread szalinski
Thanks I have already another post dealing with this issue. (check newsgroup for Server to client file transfer always corrupt). I had figured out the problem that was corrupting the file, it is the response headers that are being added to the file when it is downloaded, and i don't know

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-02-01 Thread Casey
On Feb 1, 2008, at 5:45 PM, szalinski <[EMAIL PROTECTED]> wrote: On Thu, 31 Jan 2008 07:13:55 -, Per Jessen <[EMAIL PROTECTED]> wrote: Richard Lynch wrote: Your script is reading the whole file, 64 measly bytes at a time, into a monstrous string $tmp. Then, finally, when you've load

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-02-01 Thread szalinski
On Thu, 31 Jan 2008 07:13:55 -, Per Jessen <[EMAIL PROTECTED]> wrote: Richard Lynch wrote: Your script is reading the whole file, 64 measly bytes at a time, into a monstrous string $tmp. Then, finally, when you've loaded the whole [bleep] file into RAM in $tmp, you just echo it out, right

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-01-30 Thread Per Jessen
Richard Lynch wrote: > Your script is reading the whole file, 64 measly bytes at a time, into > a monstrous string $tmp. > > Then, finally, when you've loaded the whole [bleep] file into RAM in > $tmp, you just echo it out, right? > > Don't do that. > > :-) > > while (!feof($fp)){ > echo fre

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-01-30 Thread Richard Lynch
On Tue, January 29, 2008 12:45 pm, Barney Tramble wrote: > I have a script that I am trying to figure out to allow a remote file > to > be sent to a client's browser. It works ok for small files, but it > keeps > timing out for large files. I don't think it should even take as long > as > it does (

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-01-29 Thread Chris
Barney Tramble wrote: Hey I have a script that I am trying to figure out to allow a remote file to be sent to a client's browser. It works ok for small files, but it keeps timing out for large files. I don't think it should even take as long as it does (i.e. about 10seconds) before it pops u

[PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-01-29 Thread Barney Tramble
Hey I have a script that I am trying to figure out to allow a remote file to be sent to a client's browser. It works ok for small files, but it keeps timing out for large files. I don't think it should even take as long as it does (i.e. about 10seconds) before it pops up a dialog box for m