|
Posted by majik92 on 11/02/06 22:10
Okay, I've just created this PHP script and know to finish it off, I
want to add a search feature. I want the search to search in a folder
called "songs/". The songs/ folder is full of .txt files all allocated
in subfolders of songs/. It is supposed to work like a regular search
engine. But the results need a little tweaking: if there's a file
called song/s/sing-a-song.txt, I want the PHP script to print a link to
index.php?song=sing-a-song. The value of the song query in the link
will always be the same as the file name, excluding the file extention:
Another example:
There's a text file: songs/b/better-is-one-day.txt
I want the PHP script to print a link to
index.php?song=better-is-one-day
I tried creating a script that does this, but it has proved futile. I
was hoping if you could help me, or at least guide me. All replies
would be appretiated.
[Back to original message]
|