Re: [PHP] newbie q: how to count words in a file

2003-01-03 Thread Tauntz
Thank you.. figured it out now. Tauntz Khalid El-Kary wrote: Use file system functions to get the contents of the file in a string, then us substr_count() on that string. Filesystem: http://www.php.net/manual/en/ref.filesystem.php substr_count: http://www.php.net/manual/en/function.substr-c

Re: [PHP] newbie q: how to count words in a file

2003-01-03 Thread Khalid El-Kary
Use file system functions to get the contents of the file in a string, then us substr_count() on that string. Filesystem: http://www.php.net/manual/en/ref.filesystem.php substr_count: http://www.php.net/manual/en/function.substr-count.php Regrads Khalid Al-kary Hi ! I'm new to php and I have n