Quote Originally Posted by Austinwhite View Post
there is something wrong with the cookie thing.
i read about it and understood it should be first thing to do in a code.
is there something like that?

if why is it like that? why cant we print or show an image an later set a cookie?
setcookie() function use HTTP header/meta data to set cookie, that need to be sent before any real content. You can set cookie after sending image, in that cause, you have to use JavaScript, PHP can't help you there as it sit behind a web server and HTTP protocol required all mata data need to be before real content.