SUB: Counting number of words in ".txt",".doc", and ".pdf" files.
I need advice on how to count number of words in ".pdf" and ".doc" files.
For ".txt" files I made is easily buy two line code.
$string = preg_split ("/[\s\n]+/", $string);
echo count($string);
Since my site is on linux machine, i cannot use com object. Please advice on how i can count number of words in ".doc" and ".pdf" files.
PLease advice on how i can get only content of a ".doc" and ".pdf" .
Thanks in advance.
Jacob