Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > Display a JPG Image (continued)
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 2nd July 19:02
pgarcha
External User
 
Posts: 1
Default Display a JPG Image (continued)



Hello all again,

I am still having trouble opening a jpg image using

header("Content-type: image/jpg");
$file = "docs/picture1.jpg";
header("Content-disposition: attachment; filename=$file" );
readfile($file);

The reason being that IE on the win platform does not seem to recognize
the file extension. Mozilla on the Win and Mac Platform behave
properly. Someone, suggested that just using image/jpeg. Even that duz
not werk for me.
Suggestion welcome. Thanks in advance.

Pushpinder
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666