RE: [PHP] Help with output from system() or backticks
| From: | Shawn Sellars | Date: | Tue, 13 Aug 2002 10:08:45 +0000 |
| Subject: | RE: [PHP] Help with output from system() or backticks | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112288@lists.php.net to get a copy of this message | ||
Have you tried it like this?
$output =
$executable $param;
$output = explode("\n",$output);
print_r($output);
It works for me! I get the same weird response as you when I try to
create the array directly off of the system call.
Good Luck,
Shawn Sellars
-----Original Message-----
Essentially:
$output = array (system("$executable $param"));
print_r($output);