[snip]
>
> if(isset($i))
> {
> //codeImageURL decodes $i into an image path that we can work with
> $link=codeImageURL($i);
> if($link!="" && (isAdmin() || !isThisFileBlocked($link)))
> {
> header("Cache-control: private");
> header("Content-type: image/jpg");
> header("Content-Disposition: attachment; filename=".$link);
> $fp = fopen($link, 'r');
> fpassthru($fp);
> fclose($fp);
> }
> else
> echo "Error: Couldn't decode image URL<br>\n";
> }
Michael
Have you tried header('Content-type: image/jpeg') ?
Note the 'e'...
Rich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php