Re: question regarding file format standard

From: Date: Thu, 09 Dec 2004 05:55:30 +0000
Subject: Re: question regarding file format standard
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34938@lists.php.net to get a copy of this message
On Wed, 8 Dec 2004 21:22:55 -0800, Colin Ross <cross@worldstudygroup.com> wrote: > furthermore, > if you don't have that last linefeed, (some) programs [ie., in a shell/console] will > display your prompt on the last line of the file, and not on a new line. > Example: > $ cat foo > this is a line of text. The file ends here. %User@HostName> Or. for zsh: # cat foo # > > Colin Ross > Web Assistant > World Study Group > 2226 Bush Street > San Francisco, CA 94115 > www.worldstudygroup.com > cross@worldstudygroup.com > > ________________________________ > > From: Daniel Convissor [mailto:danielc@analysisandsolutions.com] > Sent: Wed 12/8/2004 6:23 PM > To: Nick Kramer > Cc: pear-dev@lists.php.net > Subject: Re: [PEAR-DEV] question regarding file format standard > > > > > On Wed, Dec 08, 2004 at 06:03:02PM -0800, Nick Kramer wrote: > > > Why do the PEAR File Format standards request that scripts end with > > an extra line feed following the closing php tag? It seems it would > > also add that exta linefeed to all output > > Unix formatted files contain a \n after the last character in a file. > That \n does not get translated into output by PHP. > -- Justin Patrin

« previous php.pear.dev (#34938) next »