SyntaxFix
Write A Post
Hire A Developer
Questions
You can do that, or you can use the readfile function, which outputs it for you:
readfile
header('Content-Type: image/x-png'); //or whatever readfile('thefile.png'); die();
Edit: Derp, fixed obvious glaring typo.