How to search for file names inside some specified Directories and display/list in such an order where most of the search keywords found in the file name. Here file means .htm, .php only (Excluding folder names)
Here is an example. Suppose I have seven files in three different Directories (Say under A, B and C). And the files are: 1) My name is Don.htm, 2) Sweet Berry.php., 3 ) Unnamed Prisorer.htm, 4) Change File Names.php, 5) Don the Dog.htm, 7) Name of the Sweet Dog.php
Now someone Search with the Keyword: SWEET DOG.
The result should appear something like this (With most keyword match first):
7) Name of the Sweet Dog.php,
2) Sweet Berry.php
5) Don the Dog.htm
Restricting the no of result in a page (Paginating the result) would be appreciated.
The short code the better :) for a bigginer like me. I have already tried Bn_Search code from Planet Source Code (Title: Meta Search Magic Pro!) for having some concept but it did not work for me.
Waiting for your expert's comments.