RE: [PHP] preventing output dump of passthru()

From: Date: Wed, 06 Aug 2003 00:26:22 +0000
Subject: RE: [PHP] preventing output dump of passthru()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-158378@lists.php.net to get a copy of this message
At 05:22 PM 8/5/2003, Chris W. Parker wrote:
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?
$command means start up a shell, run $command in that shell, and retrieve the output of the command into a string. -jsd-

« previous php.general (#158378) next »