Re: Returning to a Shell Script

From: Date: Tue, 12 Mar 2002 03:23:27 +0000
Subject: Re: Returning to a Shell Script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88137@lists.php.net to get a copy of this message
In article <3C8D283C.7CF122A2@btinternet.com>, dapthorpe@btinternet.com says... > I have a PHP script which echos several lines, with \n newlines. > > I want to return this to the Shell Script, with > > return=$( bank.php ) > > and print $return out. However, it doesn't know how to print new > lines. Does anyone know how to do this? > > Thanks in advance > If yuou are outputting new line (\n) browsers will not recognise it as a line break; you need to use nl2br() to convert new lines to something that a browser will recognise - <BR> -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.general (#88137) next »