Re: [PHP] fpassthru failure with mozilla

2004-10-12 Thread Jason Wong
On Wednesday 13 October 2004 07:17, Jordi Canals wrote: > On Wed, 13 Oct 2004 00:22:40 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > >>Why use fpassthru? I just use readfile, is there a difference? > > > > I bet Apex11 meant readfile() php function. > > Oh, I see. Sorry for the mistake. In t

Re: [PHP] fpassthru failure with mozilla

2004-10-12 Thread Jordi Canals
On Wed, 13 Oct 2004 00:22:40 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote: >>Why use fpassthru? I just use readfile, is there a difference? > > I bet Apex11 meant readfile() php function. > Oh, I see. Sorry for the mistake. In this case, I would like to know also the diference ;) Regards, J

Re: [PHP] fpassthru failure with mozilla

2004-10-12 Thread Marek Kilimajer
Jordi Canals wrote: On Tue, 12 Oct 2004 09:17:30 -0700, ApexEleven <[EMAIL PROTECTED]> wrote: Why use fpassthru? I just use readfile, is there a difference? The main difference is with fpassthru you never show to the user the exacr location of the file, so must use the script to download it. In ex

Re: [PHP] fpassthru failure with mozilla

2004-10-12 Thread Jordi Canals
On Tue, 12 Oct 2004 09:17:30 -0700, ApexEleven <[EMAIL PROTECTED]> wrote: > Why use fpassthru? I just use readfile, is there a difference? > The main difference is with fpassthru you never show to the user the exacr location of the file, so must use the script to download it. In example, you can

Re: [PHP] fpassthru failure with mozilla

2004-10-12 Thread ApexEleven
Why use fpassthru? I just use readfile, is there a difference? On Tue, 12 Oct 2004 11:11:54 -0500, Matt M. <[EMAIL PROTECTED]> wrote: > > $filepath = "bla/bla/files/"; > > $filename = "file.zip"; > > $fullpath = "$filepath/$filename"; > > > > header( ' Pragma: '); > > header(

Re: [PHP] fpassthru failure with mozilla

2004-10-12 Thread Matt M.
> $filepath = "bla/bla/files/"; > $filename = "file.zip"; > $fullpath = "$filepath/$filename"; > > header( ' Pragma: '); > header( ' Content-Type: application/force-download' ); > header( ' Content-Type: application/octet-stream ' ); > header( ' Content-length:'.(string

[PHP] fpassthru failure with mozilla

2004-10-12 Thread [EMAIL PROTECTED]
I'm using fpassthru so users must log in to have access to certain files. The users are accessing the fpassthru script with an https connection. The code works fine with IE but sends inline ascii text with mozilla/firefox. The code looks like this: $filepath = "bla/bla/files/"; $filename =

[PHP] fpassthru failure with mozilla

2004-10-12 Thread [EMAIL PROTECTED]
I'm using fpassthru so users must log in to have access to certain files. The users are accessing the fpassthru script with an https connection. The code works fine with IE but sends inline ascii text with mozilla/firefox. The code looks like this: $filepath = "bla/bla/files/"; $filename =