Jump to content

Archived

This topic is now archived and is closed to further replies.

emehrkay

can i clear the output before i run a header?

Recommended Posts

are there calls to remove what is on track to be outputted or am i stuck trying to figure out which file is outputting a single space?

i have code that exports an excel file and when its opened, there is a line return and a tab(i think) before the text.

and i am usind fpdf and its telling me that something is being outputted to the browser and i assume its the same stuff that is showing up in the excel csv file.

anyway for me to clear that with an ob command combo?

thanks

Share this post


Link to post
Share on other sites
Hello emehrkay,

I'm not sure I understand your question, and it is always better to put code examples of your issue, but I'll try to address what you might be talking about:

You mentioned something about a tab and carriage return.  Use trim() to strip whitespace (or other characters) from the beginning and end of a string.

As for the clearing the ob issue, I think you should reference ob_clean().

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.