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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php