Can i read a file, process it an return a graphic to the browser at once in only one php file?
Yes - try be a little more specific at what you want to do, the answer will most likely include something about setting the HTTP header.
Matt