RE: [PHP] formatting "host" output

2001-07-22 Thread Matthew Loff
: Tyler Longren; php-general Subject: Re: [PHP] formatting "host" output On Sat, 21 Jul 2001 06:32, Tyler Longren wrote: > $data = exec("host $lookup"); > printf("%s", $data); > > How can I format the output of that properly? > Sometimes, it's all

Re: [PHP] formatting "host" output

2001-07-22 Thread David Robley
On Sat, 21 Jul 2001 06:32, Tyler Longren wrote: > $data = exec("host $lookup"); > printf("%s", $data); > > How can I format the output of that properly? > Sometimes, it's all on one line, and it's fine. > Other times, there's more than one line...like if there was an alias. > > Any way to format i