does anyone around here know how to make a search engine? I don't get how you make a text box and the text input is searched for throughout your website...
does anyone around here know how to make a search engine? I don't get how you make a text box and the text input is searched for throughout your website...
//\\ //\\// || //\\//\\ //\\ ||_
SOFTWARE
You can use a server-side tool (grep -ir), or you can use a seperate search engine, like so:
This is what a lot of sites do, including php.net and the W3C.HTML Code:<form method="get" action="www.google.com/custom"> <input type="text" name="q"/> <input type="hidden" name="sitesearch" value="www.mysite.com"/> <input type="hidden" name="domains" value="www.mysite.com"/> <input type="submit" value="Search!"/> </form>
As you may have noticed, Google provide a "custom search" page. You can also use a hidden input named "cof" to select certain options about the style of the search page, such as a custom icon to display and the colour scheme. I've yet to figure out what all the options do (in the form of option:value;option:value;) as they all have obscure names like "L" and "T".
See http://www.google.com/custom?q=gfgg&...ins=www.w3.org for an example. Experiment.
/edit: Have a butcher's at http://www.google.com/faq_freewebsearch.html.
Last edited by Twey; 07-17-2005 at 08:59 AM.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
thanks. I had a "butcher's hook"
//\\ //\\// || //\\//\\ //\\ ||_
SOFTWARE
Heh - I was wondering if any of y'all Americans out there would get it![]()
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks