Re: php download file via https problem

From: Date: Mon, 06 Nov 2000 09:01:53 +0000
Subject: Re: php download file via https problem
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-37235@lists.php.net to get a copy of this message
On Mon, 6 Nov 2000, searoc wrote: > hi,i hava a problem this download file via https using php, > this script can download file via http, > but can not download file via https, > maybe http header is not right. can you help me. > thanks. It works for me, with the same code (except with a gif file) I am using Apache 1.3.14 with mod_ssl 2.7.1 and PHP 4.0.3pl1, with the EAPI and the mm library. Can you give me a URL so I can see it in action and know the exact problem? > > ----------------------------- > <?php > $realname="/usr/local/disk/1"; > $file_name="test.dat"; > > header("Content-Length: ".filesize($realname)); > header("Content-Type: application/octet-stream; attachment; name=".$file_name); > header("Content-Disposition: attachment ; filename=".$file_name); > > readfile($realname); > ?> > -------------------- > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > ------------------------------------------------------------ Jean-Michel Dault <jmdault@mandrakesoft.com> MandrakeSoft inc, Montreal (Canada) HTCPCP/1.0 Developper (http://www.ietf.org/rfc/rfc2324.txt)

« previous php.dev (#37235) next »