Hello Richard, PHP,
Well I did a typo here. Sorry about it. At that moment i was
really nuts, and needed a rest. Now I solved that problem, but only
after UPDATING PHP from 4.0.6 to 4.2.1 And shell_exec worked. Exec
didn't :( I'm going to investigate this question in the future.
Thank's for the help. And as usual if anyone will need it. Here is a
working script:
";
$output = shell_exec('uudeview -i /bla/bla.txt -p /bla/bla/');
echo "";
echo ($kick_my_ass);
echo "";
?>
Thursday, July 4, 2002, 12:48:13 AM, you wrote:
>>>$output = shell_exec("uudeview -i /bla/bla.txt -p /bla/bla/");
>>echo "";
>>echo $kick_my_ass;
>>echo "";
>>?>
>> And I get nothing :(. Script like below:
RL> Well, no...
RL> Your data is in $output, and you are echo-ing out $kick_my_ass... Try echo
RL> $output
>>>$output = shell_exec("uudeview");
>>echo "";
>>echo $kick_my_ass;
>>echo "";
>>?>
>> Work fine outputting me command line parameters.
>>
>> What have I done wrong?
RL> It's also possible that you just made a typo here, but the real code has the
RL> right variables...
RL> In that case, try this:
RL> $command = "uudeview -i /bal/bal.txt -p /bla/la";
RL> exec($command, $results, $errorcode);
RL> echo implode("\n", $results);
RL> if ($errorcode){
RL> echo "OS Error: $errorcode. Use 'man errno' to look it up, but it's
RL> probably path/permissions.\n");
RL> }
RL> --
RL> Like Music? http://l-i-e.com/artists.htm
--
Best regards,
Latexmailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php