include and extra newline
| From: | Andrei Zmievski | Date: | Thu, 25 Oct 2001 16:10:17 +0000 |
| Subject: | include and extra newline | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-69007@lists.php.net to get a copy of this message | ||
'include' seems to put an extra newline after the included file.
Example:
a.php
-----
start:<?php include 'a.txt'; ?>:end
a.txt
-----
middle
The output is:
start:middle
:end
Note that there is no newline at the end of 'middle' in a.txt, yet PHP
puts one in anyway. This screws up Smarty, so I'd like to find out why
this is happening and if it's not absolutely required, can we eliminate
it.
-Andrei
Programming X-Windows is like trying to find
the square root of pi using roman numerals.
- Henry Spencer