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