I\'m trying to count number of words in file. The following code is working fine with .txt file. But When I try to read .doc docx .xls files. Its give
.txt
.doc docx .xls
if you run on linux try this :
system("wc -w " . $filename);