I might be wrong on this one, but I've always been told to never use die() in Drupal, since it stops code from the footer to be run. I recommend you to use <a href="http://api.drupal.org/api/5/function/drupal_set_header" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
</a><a href="http://api.drupal.org/api/5/function/drupal_set_header" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://api.drupal.org/api/5/function/drupal_set_header</a> to override drupal's headers.
<br><br>OT: Should we write a patch to remove that die()-call?<br><br><div><span class="gmail_quote">On 2/1/07, <b class="gmail_sendername">Ernst Plüss</b> <<a href="mailto:ernst.pluess@gmail.com">ernst.pluess@gmail.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Having a closer look at<br><a href="http://api.drupal.org/api/5/function/_locale_export_po">
http://api.drupal.org/api/5/function/_locale_export_po</a> showed gave me<br>the solution.<br><br>A die(); after sending out headers and excel data did the job. I don't<br>know exactly why this is needed, my guess is that if it's missing
<br>somehow the next time a header is sent php thinks it belongs to the<br>same response and complains because already non header data has been<br>sent.<br><br>Thanks a lot for your assistance!<br>Ernst<br></blockquote></div>
<br><br clear="all"><br>-- <br>Regards,<br> Johan Forngren <br><br> <a href="mailto:johan@forngren.com">johan@forngren.com</a> :: <a href="http://johan.forngren.com/">http://johan.forngren.com/</a>