Posted by Jean Pierre Daviau on 01/23/08 13:26
I have found that it was the indirection < that
creates the bug.
I tried to escape it \
tried to use oblique quotes `<`
dont works.
Any clue?
"Anze" <anzenews@volja.net> a ιcrit dans le message de news:
9Rnlj.5587$HS3.233379@news.siol.net...
>> $output = exec("tree_words.exe < $input", fgets(STDOUT));
>
> Second parameter should be an array, you will get the output in
> it. For
> instance:
>
> $a=array();
> $output = exec("tree_words.exe < $input", $a);
> var_dump($a);
>
> Or use passthru().
>
> Be _very_ careful to validate $input variable!!!!!!
>
> Anze
>
Navigation:
[Reply to this message]
|