emehrkay Posted July 10, 2006 Share Posted July 10, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/14211-can-i-clear-the-output-before-i-run-a-header/ Share on other sites More sharing options...
willfitch Posted July 10, 2006 Share Posted July 10, 2006 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(). Quote Link to comment https://forums.phpfreaks.com/topic/14211-can-i-clear-the-output-before-i-run-a-header/#findComment-55758 Share on other sites More sharing options...
emehrkay Posted July 10, 2006 Author Share Posted July 10, 2006 coolob_clean(); works, thanks Quote Link to comment https://forums.phpfreaks.com/topic/14211-can-i-clear-the-output-before-i-run-a-header/#findComment-55763 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.