From owner-freebsd-questions@FreeBSD.ORG Wed Sep 13 17:10:21 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C924616A4A0 for ; Wed, 13 Sep 2006 17:10:21 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 232EF43DBE for ; Wed, 13 Sep 2006 17:06:48 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 11095 invoked from network); 14 Sep 2006 03:05:52 +1000 Received: from 124-168-25-250.dyn.iinet.net.au (HELO localhost) (124.168.25.250) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 14 Sep 2006 03:05:52 +1000 Date: Thu, 14 Sep 2006 03:05:48 +1000 From: Norberto Meijome To: Alex Zbyslaw Message-ID: <20060914030548.4de7e718@localhost> In-Reply-To: <45083690.80904@dial.pipex.com> References: <3ee9ca710609130925i415eca35v483f6ee5421e1125@mail.gmail.com> <45083690.80904@dial.pipex.com> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Andy Greenwood , FreeBSD Questions Subject: Re: CLI text editor recommendation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2006 17:10:21 -0000 On Wed, 13 Sep 2006 17:49:20 +0100 Alex Zbyslaw wrote: > I'm surprised at PHP barfing on "extra" newlines, but then I've never > used it. PHP does not barf at the extra lines. what could be happening is that the file in question being edited (include_me.php) is included by some other PHP script (some_script.php). If some_script.php loads include_me.php before issuing it's HTTP headers, then the new lines (or any non-php-code text in include_me.php will be sent out ot the client , BEFORE the headers, which , depending on your error / warning settings, will make php complain, and will defnitely prevent the intended action of the HTTP headers from happening properly. back to the subject, i doubt that vi 'adds' a new line... i've used vi for years (and yes, many times editing php scripts over ssh) and it doesnt save any more lines than those already present... maybe you need to remove DOS ^M ? ( try converters/unix2dos ) - those are far more likely to cause headaches on a cross platform environment. _________________________ {Beto|Norberto|Numard} Meijome "Software is like sex, its better when its free" Linus Torvalds I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.