EllisLab text mark
Advanced Search
     
Unwanted blank lines in output
Posted: 26 July 2007 06:14 AM   [ Ignore ]
Joined: 2007-06-26
4 posts

Hello,

I am using CodeIgineter and a library to output rss feeds for external consumption.

I’m getting 2 blank lines before the output of the rss begins, which makes the feed invalid.

I am also seeing one blank line before my output of html pages.

Am I missing something obvious or is this a bug?

Regards,

Gerrit

 
Posted: 26 July 2007 07:20 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2006-02-06
117 posts

Sounds like you might have a space - or other whitespace before the <?php tag in one of scripts.

Or perhaps after the ?> tag at the end of an included file so check that first. You can always omit the last ?> tag on a php script to avoid this.

 Signature 

My Blog, I work at Erskine Design

 
Posted: 26 July 2007 08:17 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2007-06-26
4 posts
Codepat - 26 July 2007 11:20 AM

Sounds like you might have a space - or other whitespace before the <?php tag in one of scripts.

Or perhaps after the ?> tag at the end of an included file so check that first. You can always omit the last ?> tag on a php script to avoid this.

Hi CodePat,

Thanks, I went through my code and found some ?>\s in the session (ex Native_session) and other places, the session librarie is autoloaded.  Saw the whitespace mentioned in some posts but did not relate it to my issue.

It is working now.

Regards,

Gerrit