it has two functions...
1. anti-leech script
2. headers for viewing or savingif the variable "action" is set to "view" in the URL, then it loads the PDF. if the variable "action" is set to "save" in the URL, then it initiates the download dialogue.
it is all working beautifully, except for the "view" part when using IE6. when you click on the link... it starts loading... but then gives you an error.
the error can be seen in the attached screenshot: error_ie6.jpg.
<<inline: error_ie6.jpg>>
the code that i am using to call the "load the PDF headers" is...
____________________
if( file_exists( $filename ) && !eregi( "p?html?", $filename ) && !eregi( "inc", $filename ) && !eregi( "php3?", $filename ) )
{
//Specify the content type for viewing here
header( "Content-Type: application/pdf" );
$fh = fopen( "$filename", "r" );
fpassthru( $fh );
exit;
}
else fail();
____________________
anyone have any ideas why this works for all other browsers, but not IE6 (besides that this is the most un-standard browser)?
am i using the best code for calling these headers?
-wade
____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
