Jump to content


Photo

can i clear the output before i run a header?


  • Please log in to reply
2 replies to this topic

#1 emehrkay

emehrkay
  • Staff Alumni
  • Advanced Member
  • 1,214 posts

Posted 10 July 2006 - 07:23 PM

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

#2 willfitch

willfitch
  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts
  • LocationNew Hope, PA

Posted 10 July 2006 - 07:41 PM

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().
Zend Certified Engineer (ZEND001989)
www.willfitch.com

#3 emehrkay

emehrkay
  • Staff Alumni
  • Advanced Member
  • 1,214 posts

Posted 10 July 2006 - 07:48 PM

cool

ob_clean();

works, thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users