><?
>$output = shell_exec("uudeview -i /bla/bla.txt -p /bla/bla/");
>echo "<pre>";
>echo $kick_my_ass;
>echo "</pre>";
>?>
> And I get nothing :(. Script like below:
Well, no...
Your data is in $output, and you are echo-ing out $kick_my_ass... Try echo
$output
><?
>$output = shell_exec("uudeview");
>echo "<pre>";
>echo $kick_my_ass;
>echo "</pre>";
>?>
> Work fine outputting me command line parameters.
>
> What have I done wrong?
It's also possible that you just made a typo here, but the real code has the
right variables...
In that case, try this:
$command = "uudeview -i /bal/bal.txt -p /bla/la";
exec($command, $results, $errorcode);
echo implode("<BR>\n", $results);
if ($errorcode){
echo "OS Error: $errorcode. Use 'man errno' to look it up, but it's
probably path/permissions.<BR>\n");
}
--
Like Music? http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php