Why is this code not working ?
&l
You should output only the image. You are outputting a bunch of tags. Specifically
and then the image as a binary. If you want to see this, wget
the page from your server and try opening it in an editor. Your code should start at the .
Removing the header gets rid of the notification to the client that this is an image so it will try out print it out as text.