|
Posted by Jean Pierre Daviau on 01/22/08 11:55
Hi everyone,
I am trying to capture the output from an exe that takes a file
and output the counted words.
ex:
Usage: krx60410 < file
Total Words : 103
8 de
7 la
4 culture
4 qui
-------- snip ------------
I tried the folowing wich doe not work has you gessed.
$input = file($fichier);
$output = exec("tree_words.exe < $input", fgets(STDOUT));
echo $output;
--
Thanks for your attention.
Jean Pierre Daviau
--
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
Processor Radeon7000 0x5159 agp
Navigation:
[Reply to this message]
|