Click to See Complete Forum and Search --> : [RESOLVED] Alternate To Header


Pream
05-18-2008, 02:41 PM
I am using some one elses script which involves the header function but it comes after output in my page.
Does anyone know an alternate to the header function which can be used after output?

Here is that line of code:

header ('Content-type: image/png');

felgall
05-18-2008, 02:44 PM
You can't add headers after you output anything to the page. The only alternative is to buffer all of the page output and write it after the headers.

bokeh
05-18-2008, 03:40 PM
Just move the header to a place before the script sends output.

Pream
05-18-2008, 09:42 PM
Thanks for ur help everyone I know what I'm gonna do