12-30-2008, 03:59 PM
|
#9 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
|
You are outputting the image as text, put the following line of code at the top of the script to tell the browser that we are working with an image:
header('Content-type: image/jpeg');
When a browser receives content, it must be told what it is. Since most things a browser displays are text, that is the default. So if you are displaying some other file format, the browser has to know. Headers is how you tell it what its dealing with..
|
|
|
|