thanks tachyon, i will buy that book. but can you also recommend something that's not too boring and kind to beginners like me? i am also planning to take some classes on perl and cgi, i wonder if there are some offered here in new york city. do you know any?
i am not using this search engine for http://www.textcentral.com. it is a totally different one. if you wanna see what i've done so far it's at
http://alleba.dreamhost.com. my site is called 'alleba', a search engine and web directory. it is true that it searches through a flat text file. it is called links.db. but what do you mean by 'use a real database or generate an index that you can search'? how could i do this?
i'm also posting my links.db and category.db and several others to get you into the whole schematics of the script. everything can be found at:
http://alleba.dreamhost.com/scripts.
nph-build.cgi -- rebuilds all the category .html files as well as the homepage (index.html) and directory page (dir.html). i'm not sure if this is relevant in my question.
db-utils.pl -- i think this file contain some subs that search.cgi uses, such as for sorting links and categories.
search.cgi -- this file does the actual search in links.db and category.db.
site_html_templates.pl -- contains the templates in which several generated pages are based on, like for the search results. nph-build also builds category pages based on several elements below this file.
links.db -- the links database, contains the ID, title, keywords etc.
category.db -- contains all the category and subcategory names.
links.def -- contains information on the field assignments of each piece of information. e.g. title
1, description
5.
links.cfg -- here all the important settings are set such as absolute paths and url's that each .cgi and .pl file relies on.
hopefully these files will enlighten everyone. thanks, looking forward to your replies.
drewboy