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

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

2003-01-03 Thread Tauntz
Hi ! I'm new to php and I have not found a solution for my problem (dumb me) ok.. here we go... I have a file.. it's content is: hello, ello, llo and so on and so on ok.. and now I want to know how many "hello" words are in that file.. how can I arrange it ?:) Thanks Tauntz -- PHP Genera