Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6749 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15413 invoked by uid 1010); 2 Jan 2004 23:19:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15329 invoked by uid 1007); 2 Jan 2004 23:19:21 -0000 Message-ID: <20040102231921.15328.qmail@pb1.pair.com> To: internals@lists.php.net Date: Fri, 2 Jan 2004 18:19:20 -0500 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Posted-By: 68.40.193.236 Subject: changing include() From: ifette@umich.edu ("Ian Fette") Having been around the "public" PHP newsgoups for years (comp.lang.php, alt.php etc), I notice that many of the problems people have with whitespace (either before header() calls, or while outputting image data etc.) seem to come from included files having whitespace at the beginning or end of the file. As such, I wonder if it wouldn't be possible to change include(), require(), include_once(), require_once() to not pass through whitespace at the beginning or end of the file, unless told to by a new (and optional) second parameter. It seems that this would have a low probability of breaking anything, and would solve many users' problems. What do people think? Am I crazy for requesting such a feature, or is this something that would be worth-while? // Ian Fette // Proponent, comp.lang.php