Reply to exec

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация