You are here: Re: Special Search « All PHP « IT news, forums, messages
Re: Special Search

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация