First of let me just say hello to all you members this is my first time here.
Its been some time since i coded PHP so i`am rusty as H##L.
And this is way i hope you fine ppl can help me out.
As the subject says i`am trying to make a script that serches the all of the .txt file fore numbers og any cind.
And then posts the line of all matches found. I have done this to an extent.
White this code. :
$file = “file.txt”;
$lines = count(file($file));
echo “There are $lines lines in $file
But its not doing exacely what i want it outputs the result like this.
There are 8 lines in file.txt
Array (  => 7 ) Array
As you can see it only outputs the last line and i want it to post all lines.
As this is a test file ALL the lines in file.txt is suposed to be posted. (All have numbers)
As fore the file i will be using\ serching in i dont need to tink abaout format becuse all i want it to do is check every line fore numbers and output every line that has more then 4 numbers after etche other.
So what i want it to do is post somthing like this:
[b]There are 8 lines in file.txt
On Line: 0 Is: 12222
On Line: 1 Is: 21342
On Line: 2 Is: 12222
On Line: 3 Is: 23222
On Line: 4 Is: 12322
On Line: 5 Is: 12344
On Line: 6 Is: 66346
On Line: 7 Is: 78678[/b]
can anyone please help me white this ? I will be for ever greatfull.