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

[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 ?:) Th

RE: [PHP] Re: how to get names of files...

2002-06-25 Thread tauntz
Thank you, I got it working :) -Original Message- From: Henrik Hansen [mailto:[EMAIL PROTECTED]] Sent: 25. juuni 2002. a. 15:04 To: [EMAIL PROTECTED] Subject: [PHP] Re: how to get names of files... [EMAIL PROTECTED] (Tauntz) wrote: > Hello.. > > I have a problem: >

[PHP] how to get names of files...

2002-06-25 Thread tauntz
Hello.. I have a problem: I want to get all the filenames in a folder and put each filename into a variable.. (if there's a.gif in the folder then I want $first to be "a.gif", IF there's also a "na.jpg" then I want then it should be $second .. if you know what I mean) sry for the dumb question

Re: [PHP] a quick question..

2002-01-27 Thread Tauntz
Thank you, it worked :) - Original Message - From: "Nick Wilson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 27, 2002 9:27 PM Subject: Re: [PHP] a quick question.. > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * and

[PHP] a quick question..

2002-01-27 Thread Tauntz
If I have n variables: $nr1 = "some text"; $nr2 = "some other text" $nr3 and I want to print the text "randomly" (like if I enter the page.. it displays $nr1... next time it displays $nr 5.. etc) how can I achieve it ? [EMAIL PROTECTED]

Re: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Tauntz
hey.. thank you.. but is it possible to read the last lets say 10 lines from a file ? - Original Message - From: "Niklas Lampén" <[EMAIL PROTECTED]> To: "Tauntz" <[EMAIL PROTECTED]>; "Php-General" <[EMAIL PROTECTED]> Sent: Tuesday, Aug

[PHP] How do I read the first n lines from a file?

2001-08-28 Thread Tauntz
hi ! I have a simmple question :).. Lets say that I have a file called: list.txt and I want to take the first 10 lines from it & echo it to the browser ? thank you [EMAIL PROTECTED]