Re: [PHP] Download Script - Newbie Alert

2002-06-04 Thread Marek Kilimajer
] 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

RE: [PHP] Download Script - Newbie Alert

2002-06-04 Thread John Holmes
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

RE: [PHP] Download Script - Newbie Alert

2002-06-03 Thread John Holmes
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

Re: [PHP] Download Script - Newbie Alert

2002-06-03 Thread Clay Loveless
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