RE: [PEAR-DEV] question regarding file format standard

From: Date: Thu, 09 Dec 2004 05:22:55 +0000
Subject: RE: [PEAR-DEV] question regarding file format standard
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34937@lists.php.net to get a copy of this message
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> 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. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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