Re: What is "white space"

From: Date: Sat, 15 Nov 2003 17:12:38 +0000
Subject: Re: What is "white space"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169739@lists.php.net to get a copy of this message
--- Gerard Samuel <php-general@trini0.org> wrote: > Most of the time, I edit files via the command line, (FBSD). When > the files are saved, it adds a \n (newline) character (at least I > believe that is what it is) after the closing ?> When viewing these > files in a windows GUI editor, there is an extra line after the ?> > closing tag. Using the php function headers_sent(), doesn't show that > there is any output being created by these extra lines after closing > ?> > > So is "white space" only physical space (\s) or can it be anything > like \t \r \n??? This is a feature/bug of PHP, depending on your perspective. When a closing ?> is followed by a newline, the newline is not output. Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp

« previous php.general (#169739) next »