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?
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.
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
Bookmarks