would you realy re-envent the wheel? There exist http://www.htdig.org/
Main Topics
Browse All TopicsI would like some pointers on how to write a search CGI running on a local host, meaning searching in a folder of HTML files on my computer.
I especially need help in how to build the local host server and how to call the search CGI running from it.
The other point I am not sure about is how I return the results back to my browser.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
would you realy re-envent the wheel? There exist http://www.htdig.org/
Well, for a basic setup I don't think you have to configure anything.
What Windows version do you have (95/98/ME/NT/2000/XP) ?
Please follow instructions below to get started.
Here is link to Windows version of Apache
http://apache.archive.sune
Download it and install it.
Then download and install Perl.
http://www.activestate.com
Test your web server by clicking this url
http://localhost
You should get a welcome message from Apache.
Then save the "hello world" cgi script above as "myscript.pl" under the cgi-bin directory where you installed Apache.
Then click on link below
http://localhost/cgi-bin/m
You could write the search engine as a Java application that you could access through a web browser interface. The Java application would need to speak http for this to work.
I suggest Java because it has excellent network support, is platform independent and most users will already have Java support installed, but it is possible to use other languages too, including Perl.
Do you know something about the users that will use the CD-rom, is it a closed, small group or could it be anybody?
Can you assume something about which OS they use?
Yes, if the Java aplications listens on some port (e.g. 6020), you can access it from web browser like http://localhost:6020
The Java application would need to written as a miniature web server.
Will the CD-ROM users be willing to install a web server and Perl in order to use the CD-ROM?
If yes, writing a CGI script is probably less work than writing a Java application.
If no, or if you plan wider distribution later, a Java application means less installation headaches for the users.
Here is a link that should get you started.
http://www.advisor.com/Art
Business Accounts
Answer for Membership
by: rj2Posted on 2002-05-29 at 10:17:28ID: 7042366
You should install web server (e.g Apache),install Perl and save you CGI script in cgi-bin directory. yscript.pl
/Products/ ActivePerl /
If you have configured web server correctly, you should be able to access cgi script like http://localhost/cgi-bin/m
Here are some links:
Apache web server: http://www.apache.org
Activstate Perl: http://www.activestate.com
Below is sample cgi script that returns "hello world" in browser.
#!/usr/bin/perl
use strict;
print "Content-Type: text/html\n\n";
print "<HTML><BODY>Hello world</BODY></HTML>";