]
Organization: U.S. Army
Reply-To: [EMAIL PROTECTED]
Date: Mon, 3 Jun 2002 20:06:42 -0400
To: 'Philip Hess' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] Download Script - Newbie Alert
Store the files above your web root and use a PHP script to control
access.
Use header to set
To: PHP
Subject: Re: [PHP] Download Script - Newbie Alert
You can also check $HTTP_REFERER, it's much simpler
Marek
Clay Loveless wrote:
Something else along these lines -- I really, really wish that more
sites
that use this method would test across multiple browsers and
platforms.
I
Store the files above your web root and use a PHP script to control
access.
Use header to set the appropriate header for the file,
header(Content-Type: application/vnd.ms-excel; name='excel');
header(Content-Disposition: attachment; filename= . $filename .
.xls);
then use passthru() to send
To: 'Philip Hess' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] Download Script - Newbie Alert
Store the files above your web root and use a PHP script to control
access.
Use header to set the appropriate header for the file,
header(Content-Type: application/vnd.ms-excel; name='excel
4 matches
Mail list logo