RE: [PHP] splitting up an array into lines ...

2002-01-15 Thread Martin Towell
The problem is that this line: $rpm_list = `rpm -qa`; gives back a string, so use this: $rpm_list = `rpm -qa`; $rpm_list = explode("\n", $rpm_list); and see how that goes Martin -Original Message- From: Neil Mooney [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002

Re: [PHP] splitting up an array into lines ...

2002-01-15 Thread Jason Wong
On Tuesday 15 January 2002 21:04, Neil Mooney wrote: > I want this code to work thru a large cluster and put the rpm information > into a db , > it all works apart from the foreach loop. > > why doesnt my code work ( in particular the foreach loop ) , > > // get hostname > $host = `hostname`; > >