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
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
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:
>
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
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
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]
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
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]
8 matches
Mail list logo