note 56876 added to function.ob-clean
| From: | Didier at osu1 dot php dot net | Date: | Sun, 18 Sep 2005 05:15:06 +0000 |
| Subject: | note 56876 added to function.ob-clean | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95348@lists.php.net to get a copy of this message | ||
The reason for the blank line appearing when you use an include is usually simply because you have a
blank line somewhere in the include outside the php tags. Remember an included file is interpreted
just like as if you copy and pasted it, so if you got something like this
// include.php contains all my default funtions
<?php
function default() {
}
?>
then the comment is printed for the entire world to read.
Using ob_clean might be a work around but it would be better to write your include file properly.
----
Manual Page -- http://www.php.net/manual/en/function.ob-clean.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56876
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56876&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56876&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56876&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56876&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56876&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+56876&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56876&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56876&report=yes
Search -- http://master.php.net/manage/user-notes.php