Hi Everyone, Last week I posted about having a problem displaying TIFFs thru PHP. This week I'm back to issues, tho slightly different. I'll start over with my case.
I have a docroot: /usr/local/apache/htdocs-chm/ I have an images dir: /usr/local/apache/chm-images/ These are sensitive documents that I cannot have out where the public can get to them. I was using ImageMagick, however it took a multipage tiff and turned it into: 1.TIFF 1.JPG.0 1.JPG.1 1.JPG.2 1.JPG.3 Sometimes they are 1.JPG, sometimes only 2 pages, sometimes 10 pages. We've decided to go with a TIFF viewer plug-in, and just use those. I am using the follow PHP script to handle this: <? session_cache_limiter('private'); include( $_SERVER['DOCUMENT_ROOT'] . "/master.include.php" ); $blah = "/usr/local/apache/chm-images/" . $_GET['id'] . ".TIFF"; header("Content-type: image/tiff"); header("Content-Transfer-Encoding: binary"); $_GET['id'] = str_replace( ".", "", $_GET['id'] ); $_GET['id'] = str_replace( "/", "", $_GET['id'] ); readfile( $blah ); ?> If the TIFF is a single pager, it works fine. If it's a multipager, I get an invalid file format error. I'm really at a loss as what to do. I'm willing to explore other solutions to display the TIFF images also. Can anyone please help? -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php