making a search bar, to import code from external directories |
making a search bar, to import code from external directories |
gerble1000 |
Jun 26 2010, 11:00 AM
Post
#1
|
Group: Members Posts: 5 Joined: 26-June 10 Member No.: 12,181 |
here goes
im trying to add a search bar to my mp3 playing website i would like to make a page that has a search bar that when a uer types "coldplay" it would search www.mydomain.co.uk\albums for folders containing coldplay in the foldername and then bring the code from inside that folder in a text file named musiccode.txt and place it onto the search page or build another page with all results and direct to that page not sure if im making sence to anybody but im new to html but willing to learn inside the musiccode.txt is just the clickable image code for that album so when dropped into the search page it will be an album image examples would be appreciative and no php please thanx guys |
pandy |
Jun 26 2010, 11:20 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 |
The bar/box isn't the problem. The program that's needed to do the job is. Do you use a database?
|
gerble1000 |
Jun 26 2010, 11:23 AM
Post
#3
|
Group: Members Posts: 5 Joined: 26-June 10 Member No.: 12,181 |
The bar/box isn't the problem. The program that's needed to do the job is. Do you use a database? im not sure what u mean by database but im sure i dont use one the code i need to be imported is accessable to everyone if they typed it into the address bar not sure if this is what ur asking |
pandy |
Jun 26 2010, 07:25 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 |
It isn't "a code". You need a search engine of sorts, a script, a program.
|
gerble1000 |
Jun 27 2010, 03:19 AM
Post
#5
|
Group: Members Posts: 5 Joined: 26-June 10 Member No.: 12,181 |
would anyone here know how to make one
|
pandy |
Jun 27 2010, 04:42 AM
Post
#6
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 |
Not easily of you don't already know how. Maybe you can find an already existing solution you can use.
I move this to server-side scripting. |
Brian Chandler |
Jun 27 2010, 07:29 AM
Post
#7
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
QUOTE i would like to make a page that has a search bar that when a uer types "coldplay"it would search www.mydomain.co.uk\albums for folders containing coldplay in the foldername First, www.mydomain.co.uk\albums is invalid. I suppose you mean www.mydomain.co.uk/albums (the back-to-front slash is a relic of historical nonsense in the 1980s) Second, it is not in general possible to "search" a website for directory ("folder") names. Perhaps you mean you are hosting this stuff? Of course you can search through files on your own web server... but as Pandy said, it is not a question of "getting a code". If you are not a programmer, you would need to look for a prebuilt solution. |
Brian Chandler |
Jun 27 2010, 07:33 AM
Post
#8
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
QUOTE and no php please Ah, just spotted this. Well, try magic then: http://www.google.co.jp/search?hl=en&c...q=&gs_rfai= |
gerble1000 |
Jun 27 2010, 08:35 AM
Post
#9
|
Group: Members Posts: 5 Joined: 26-June 10 Member No.: 12,181 |
QUOTE i would like to make a page that has a search bar that when a uer types "coldplay"it would search www.mydomain.co.uk\albums for folders containing coldplay in the foldername First, www.mydomain.co.uk\albums is invalid. I suppose you mean www.mydomain.co.uk/albums (the back-to-front slash is a relic of historical nonsense in the 1980s) Second, it is not in general possible to "search" a website for directory ("folder") names. Perhaps you mean you are hosting this stuff? Of course you can search through files on your own web server... but as Pandy said, it is not a question of "getting a code". If you are not a programmer, you would need to look for a prebuilt solution. how much would it cost to hire a programmer to implement this |
gerble1000 |
Jun 27 2010, 05:26 PM
Post
#10
|
Group: Members Posts: 5 Joined: 26-June 10 Member No.: 12,181 |
QUOTE i would like to make a page that has a search bar that when a uer types "coldplay"it would search www.mydomain.co.uk\albums for folders containing coldplay in the foldername First, www.mydomain.co.uk\albums is invalid. I suppose you mean www.mydomain.co.uk/albums (the back-to-front slash is a relic of historical nonsense in the 1980s) Second, it is not in general possible to "search" a website for directory ("folder") names. Perhaps you mean you are hosting this stuff? Of course you can search through files on your own web server... but as Pandy said, it is not a question of "getting a code". If you are not a programmer, you would need to look for a prebuilt solution. how much would it cost to hire a programmer to implement this ok i break down what im looking for is there a code to take a string and search a specified external location in a directory for folders containing that string and put the foldernames in a variable |
Brian Chandler |
Jun 28 2010, 12:40 AM
Post
#11
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
QUOTE i would like to make a page that has a search bar that when a uer types "coldplay"it would search www.mydomain.co.uk\albums for folders containing coldplay in the foldername how much would it cost to hire a programmer to implement this ok i break down what im looking for is there a code to take a string and search a specified external location in a directory for folders containing that string and put the foldernames in a variable No, there isn't "a code" for anything -- this is a misunderstanding. Programmers call bits of program "code" (no 'a', it's like cheese or water) for historical reasons, but really speaking for any particular job you write a program, which combines all sorts of elements according to strict rules of syntax. So it's like constructing a grammatical and meaningful sentence in English, not like cooking, where you can just chuck ingredients ("a code") in to get a better taste. Anyway, yes, it's easy to accept an input string; then what **exactly** do you mean by "specified external location in a directory". (If "external" means on some other domain you don't have control over, then you do not in general have access to the file structure.) If you can make the requirements completely clear, it's quite possible you can get the necessary bit of program written for a very reasonable fee. |
Christian J |
Jun 28 2010, 03:48 AM
Post
#12
|
. Group: WDG Moderators Posts: 9,661 Joined: 10-August 06 Member No.: 7 |
Maybe one of these search services can be used? No PHP required.
http://www.atomz.com/ http://www.freefind.com/ |
pandy |
Jun 28 2010, 10:03 AM
Post
#13
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 |
What? Can't you say "a cheese"? Honest question, I thought you could.
|
Brian Chandler |
Jun 28 2010, 10:22 AM
Post
#14
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
What? Can't you say "a cheese"? Honest question, I thought you could. Yes, you can say 'a cheese' -- either meaning one complete whole lump cheese from the farm, or meaning "type of cheese". But 'cheese' is a non-count noun; but unless people have been learning English from a non-IndoEuropean language I doubt if they ever need to learn that. (I mean, I presume Swedish works the same as English here...) |
pandy |
Jun 28 2010, 11:12 AM
Post
#15
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 |
Yes, it's the same. That's how I use it. I feared "a cheese" was wrong even when talking about the whole thing. Thanks.
|
Lo-Fi Version | Time is now: 28th April 2024 - 12:37 PM |