I have two pieces of code. One is a VERY long code written by someone else - fpdf. The other was written by me. Now, I have a session started ready a mysql database. I've got everything done that I want, and now it's time to call the fpdf script. But... It generates the dreaded 'headers already sent' message.
I've tried the following:
ob_end_clean();
header("Connection: close\r\n");
ob_end_flush();
flush();
and variations thereof, but to no avail. I need to clear out the header information that's already been sent before I call the fpdf script. How do I do this properly?