Re: include and extra newline

From: Date: Thu, 25 Oct 2001 16:09:19 +0000
Subject: Re: include and extra newline
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-69008@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. Uh, are you sure? How did you create a.txt? Try: od -c a.txt -Rasmus

« previous php.dev (#69008) next »