Hello, I am having one doc file and I want to count its words & number of pages using PHP. Is there any way using PHP to accomplish this? I tried to search the stuff on google & I found the solution but it was in COM which requires windows server & my server is linux. So how can I do this? Please help me if anyone has solved such issue. Thanks in advance.
Not sure if there's a PHP function for counting words, but as its Linux, its really simple. Use doc2txt to convert to a text file, then us wc to count words. You can use php's exec function to execute system commands. You haven;t mentioned which Linux distribution you are using, so can't really describe how to install doc2txt, but if you google for it, you can find the package with install instructions for all major distros.