RE: [PHP] preventing output dump of passthru()
| From: | Chris W. Parker | Date: | Wed, 06 Aug 2003 00:22:01 +0000 |
| Subject: | RE: [PHP] preventing output dump of passthru() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-158376@lists.php.net to get a copy of this message | ||
David Nicholson <mailto:me@djnicholson.com>
on Tuesday, August 05, 2003 5:12 PM said:
> $output = array();
> exec("command",$output);
> $output = implode("",$output);
That's a good idea!
Well how about this? (posted in another message)
$output = explode("\n",chop(
$command));
That is working great and it's only one line. The problem is that I have
no idea WHY it works and what the ` characters do.
Can you fill me in?
Thanks,
chris.