[nycphp-talk] Apache/PHP Authentication - Again

Analysis & Solutions danielc at
Thu Feb 6 12:50:50 EST 2003

Hi Griffith:

Along with what other people suggested, you could try doing this...

In the authentication script, after they've been approved, put in this 

$File = 'jtwforms.wb3';

header('Content-type: application/octet-stream');
header("Content-Disposition: attachment; filename=\\"$File\\"");

$File = "./$File";
$In = fopen($File, 'rb');
echo fread( $In, filesize($File) );

Of course, since it sends headers, make sure to not send any output
before this part.



               PHP classes that make web design easier  | |
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7th Ave #4AJ, Brooklyn NY    v: 718-854-0335   f: 718-854-0409

More information about the talk mailing list