TIFF display problem...

From: Date: Mon, 21 Jun 2004 19:43:19 +0000
Subject: TIFF display problem...
Groups: php.general 
Request: Send a blank email to php-general+get-188769@lists.php.net to get a copy of this message
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

« previous php.general (#188769) next »