I've run into this problem as well, and I've concluded that it's a bug
in Acrobat. I'm not aware of a work-around.

Sorry for the somber response... :(

--Dave

On Fri, 2003-05-30 at 14:21, Wade Preston Shearer wrote:
> i have a question about a script that i wrote (bob wrote it originally, 
> but i have been tweaking it)...
> 
> it has two functions...
> 
>       1.      anti-leech script
>       2.      headers for viewing or saving
> 
> 
> if 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.
> 
> ----
> 

> 
> 
> 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

Attachment: signature.asc
Description: This is a digitally signed message part

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to