Chris W. Parker <> on Tuesday, August 05, 2003 4:56 PM said: > Trying to prevent the output dumping of passthru() and instead store > the output in a variable.
[snip] > But that didn't work. Is there *ANY* way to achieve what I want? Ok I've found one solution so far* and it's doing what I want. But I'm not sure exactly what it's doing so I'd like to know if it's "dangerous" or not. Here is my code: $command = "file -i ".$pictureDir."1"."_".$id."-*.gif"; // testing $output = `$command`; $outputArr = explode("\n",$command_output); print_r($outputArr); If you'll notice line #2 is "$output = `$command`;". It has those funny quote characters, the button next to the 1. What is that and why does it work?? Thanks, Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php