# changing include()

- Thread: https://externals.io/message/6749
- Original archive: https://news-web.php.net/php.internals/6749
- Started by Ian Fette on 2004-01-02T23:19:20+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #6749 — Ian Fette — 2004-01-02T23:19:20+00:00

URL: https://externals.io/message/6749#6749

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
