Re: TIFF display problem...
| From: | Richard Harb | Date: | Thu, 24 Jun 2004 10:03:01 +0000 |
| Subject: | Re: TIFF display problem... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188937@lists.php.net to get a copy of this message | ||
Argh, I see your problem was already solved (answers haven't been
listed as one thread, so I missed em). Oh well.
-----Original Message-----
Sent: Thursday, June 24, 2004, 11:58:15 AM
> Are you certain there are no other characters being sent (introduced
> by the addition) in the 'body' beside the image?
> Will you get any output (characters and all) if you request the image
> file directly - without embedding it into a page using <img src or
> whatever?
> While I have used only the "supported by default" images like jpg, png
> and the like, that always turned out to be the problem for me ...
> Richard
> -----Original Message-----
> Sent: Monday, June 21, 2004, 9:43:19 PM
>> Hi All,
>> I've run into a jam.. I have the follow PHP script:
>> <?
>> header("Content-type: image/tiff");
>> $_GET['id'] = str_replace( ".", "", $_GET['id'] );
>> $_GET['id'] = str_replace( "/", "", $_GET['id'] );
>> $blah = "/usr/local/apache/chm-images/" . $_GET['id'] .
>> ".A";
>> readfile( $blah );
?>>>
>> This works just fine...
>> When I add...
>> session_start();
>> if ( !$_SESSION['user_id'] )
>> {
>> exit();
>> }
>> ...to it, the image does not display.
>> What I need to do is read in images from a secured directory and display it
>> on the page. I was using JPGs before and now need to display TIFF files.
>> We have the plugins for IE all setup. Could someone tell me how I could fix
>> this? I'm at a complete loss...
>> -Dan Joseph