|
Posted by Martin Mouritzen on 11/03/06 00:31
On 2 Nov 2006 14:10:55 -0800, majik92@gmail.com wrote:
>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:
<snip>
>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.
First I would advice you to move to a database, going through all
those files will be hard on performance, unless it's just a private
script or something only a few people will use.
Second, I need you to describe the file structure a bit more, how
exactly are the files positioned?
--
best regards,
Martin Mouritzen.
http://www.siteloom.dk
Navigation:
[Reply to this message]
|