Re: [PHP-WIN] download function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
// DvDmanDT
MSN: dvdmandt@hotmail.com
Mail: dvdmandt@telia.com
"Ignatius Reilly" <ignatius.reilly@free.fr> skrev i meddelandet
001901c37064$3a84ad40$0100a8c0@server">news:001901c37064$3a84ad40$0100a8c0@server...
> I found the solution to my problem.
>
> Sorry
>
> Ignatius
> _________________________
> ----- Original Message -----
> From: "Ignatius Reilly" <ignatius.reilly@free.fr>
> To: "Win32 list PHP" <php-windows@lists.php.net>
> 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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux