Set the content type header at the beginning of your php file, so that the browser understands that an image is to be displayed. (Use image/png for png files).
header('Content-type: image/jpeg');
styts
2010-02-23 08:33:38