Would you mind sharing that solution with us? I'm kinda intrested in that...

-- 
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"Ignatius Reilly" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> I found the solution to my problem.
>
> Sorry
>
> Ignatius
> _________________________
> ----- Original Message -----
> From: "Ignatius Reilly" <[EMAIL PROTECTED]>
> To: "Win32 list PHP" <[EMAIL PROTECTED]>
> Sent: Saturday, August 30, 2003 1:19 PM
> Subject: [PHP-WIN] download function
>
>
> > Hello,
> >
> > I have the following problem:
> >
> > I want users to download content that is stored in a private directory,
as
> a
> > downloadable file.
> > So I do:
> >
> > <code>
> > header( "Content-type: octet/stream" ) ;
> > header( "Content-Length: ".filesize( $file_path ) ) ;
> > header( "Content-Disposition: attachment; filename={$filename}" ) ;
> > header( "Content-transfer-encoding: binary" ) ;
> > echo "\n" ;
> > readfile( $file_path ) ;
> > </code>
> >
> > Everything works just fine, except that the main IE (5.5) windows
> underneath
> > the download box shows a "The page cannot be displayed" error, which I
> would
> > just as well replace by
> > my own content.
> >
> > How can I do?
> > Thanks
> >
> > Ignatius
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to