----- Original Message -----
> function showpix($picture_id)
> {
> $sql="SELECT ug.group_name, p.name from usenet_groups as ug,
> pictures as p WHERE p.id='$picture_id' AND ug.id=p.group_id";
> $result=mysql_query($sql) or die(mysql_error());
> $row=mysql_fetch_array($result);
> $dirhash=get_storage_dir($row["name"]);
> $picturedirectory=STORAGEDIR."/".$row["group_name"];
> $fullpicturename=$picturedirectory."/".$dirhash."/".$row["name"];
> header("Content-Type: image/jpeg");
> header("Content-Length: ".filesize($fullpicturename));
> header("Content-Disposition: inline; filename=".$row["name"]);
> readfile("$fullpicturename");
> exit;
> }
OK, an update. The pictures are saveable as .jpg's in Opera, so it seems to
be localized to IE. Is there maybe a different set of headers that should
be sent for Internet Explorer, or do I just have a bug in my browser to deal
with?
Bob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php