note 110905 added to function.ob-clean

From: Date: Fri, 21 Dec 2012 11:02:40 +0000
Subject: note 110905 added to function.ob-clean
Groups: php.notes 
Request: Send a blank email to php-notes+get-192629@lists.php.net to get a copy of this message
Don't use ob_clean() to clear white-space or other unwanted content "accidentally" generated by included files. Included files should not generate unwanted content in the first place. If they do, You are doing something wrong, like inserting white-space after "?>" (there should not be a "?>" at the end of PHP files: http://php.net/manual/en/language.basic-syntax.phptags.php ). ---- Server IP: 87.106.1.137 Probable Submitter: 87.79.237.145 ---- Manual Page -- http://php.net/manual/en/function.ob-clean.php Edit -- https://master.php.net/note/edit/110905 Del: integrated -- https://master.php.net/note/delete/110905/integrated Del: useless -- https://master.php.net/note/delete/110905/useless Del: bad code -- https://master.php.net/note/delete/110905/bad+code Del: spam -- https://master.php.net/note/delete/110905/spam Del: non-english -- https://master.php.net/note/delete/110905/non-english Del: in docs -- https://master.php.net/note/delete/110905/in+docs Del: other reasons-- https://master.php.net/note/delete/110905 Reject -- https://master.php.net/note/reject/110905 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192629) next »