Jump to content

can i clear the output before i run a header?


emehrkay

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
Link to comment
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().
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.