|
CGI PERL
& uses in market |
Site
Search:
Server requirements and instructions on how you can obtain this
Perl script is located at the bottom of this page.
Site Search and indexing program was written in Perl and was
designed for scanning large, text-intensive Web sites. The
Site Search and indexing system takes full advantage of the Title,
META Keywords and META Description Tags so results
make sense to the searcher. The Site Search has been tested on
sites with well over 1,000 HTML pages and text files.
With an index type search engine you will actually have two
scripts. One script which will search the "index" and another script
(for the administrator) which will build the "index". This index is
a database of all indexed files located on your server and when a
search is performed, it will only have to search this one file
instead of traversing through your entire Web site each time a
search is performed. This means your search engine is faster and a
lot less server demanding than those other site search engines. Of
course the database is ONLY as up-to-date as of the last time you
indexed (just like the big boys). Indexing several hundred documents
should only take a few seconds.
The Site Search takes advantage or your META Tags, such as
Keywords and Description. The list of hits for a
particular query is weighted by relevance so the best matched pages
are listed first, and only a set number of links are displayed per
page. The searcher will have the option of modifying their query on
the search results pages or continuing on with the "next 10".
The Site Search will allow for complex but easy to use Boolean
operators, grouping, case control and basic wildcard operators just
like the most advanced search engine do.
You decide exactly which files, directories and which file types
are scanned (HTML, text, etc.). You can also designate certain key
files to appear higher in the rankings. While the search results
remain honest as to whether or not terms were found, these files
will have their ranking multiplied (just in case you want those
special pages found first)!
The occurrence of a search term in the Title, META Keywords, META
Description, or the first few characters found in the document can
have added weight (equivalent to a multiplier per hit). This will
give extra weight to those pages having properly formatted Title and
META Tags, even if they contain the same basic information (just
like the real search engines).
The ABS Site Search also allows for "stop words". Stop words are
usually common words that are generally ignored in a search query. A
stop word such as "and" or "it" for example would not be a
searchable word. Note that users can still search for these words by
using the special Boolean operators before them, i.e. "+and", "-it",
or by including them in a quoted statement.
Server
Requirements:
Requires Perl 4.X or greater (does not use any Perl packages).
You MUST have CGI access where you can run your OWN CGI Perl
applications. Your CGI capabilities must allow you to read, write
and execute on your server. If you are unsure what capabilities
you have let us test your server for you. If your server fails our
tests, there will be no charge.
If you are running an NT server (specially if your are running
Microsoft-IIS) or do not have a good understanding of Perl, we
highly recommend you have us install the script for you.
This script comes with
FREE
installation and is guaranteed to run on your server if we do the
initial installation at time of purchase.
The price for this script is $215.00 (hundreds less than
anything comparable). Price includes basic installation on your
server and is easily maintained! |
http://hotwired.lycos.com/webmonkey/99/13/index0a_page3.html?tw=backend
The plan here is to
develop a small application locally - on your home or work computer.
Once that's done, you'll have no trouble finding an ISP that can serve
your app to the world at large.
You probably have everything you need to get this done already, but
let's do a quick check to make sure.
If you're running Windows 95/98, check to see if you have Personal
Web Server (PWS) installed. If it is, there will be an icon for it in
the Control Panels. If not, you can
download
PWS from Microsoft's site. Or, if you have an NT Workstation, you'll
need the NT
Option Pack, also from Microsoft. From here on out, I'll assume you
have one of these packages installed and have poked around it a little
bit. Make sure you know which folder will be serving out your pages. The
default will likely be something like C:\Internetpub or C:\wwwroot.
If you're working on a Mac, this probably isn't the tutorial for you.
PWS and ASP will work only on a PC.
Filemaker Pro offers a nice Web-database solution for the Mac. Or if
you're heading into Unixland, I'd recommend that you get familiar with
PHP,
which is a great open-source scripting language.
Go into your Control Panel and double-click the Network item. In the
Identification Tab, there will be a slot labeled Computer Name. Whatever
you have in here will be the URL you'll use to access your server.
As I used previously macromedia with its multi-user server, by
setting you computer to be a server, cool you may do the same thing with
your windows 98, or higher, go to your installation disk and choose to
add it up. you should able to view the icon in your control panel. Is
too funny that the pws is there on my cd, and I never knew for years,
you must look for by browsing under add-ons, I wonder did MS developer
had a real intention to make our job easy, am sure it is not.
Since I indicated my computer name was Jay, I simply have to enter
http://jay/ in a browser to access my default directory. Make
sure you get something other than an error when you try this.
If you have any version of PWS installed, you have the ability to
create active server pages (ASPs), which we'll be doing in the lessons
to come. So, if you don't already know your way around ASP, check out
Kevin's
introductory article. You should also know your way around
basic SQL statements, which Charles covers in his ColdFusion
article.
If you're having problems getting PWS to work, you may have to make
some changes to the system registry. Since I don't want to be
responsible for crashing your system, I'll simply suggest that you
research the problem through the
ASP message board at
4GuysFromRolla.com or via Usenet groups
at Deja.com.
When you use ASP, HTML and server-side code (in our case VBScript)
are intermingled, so you need something that allows you to manipulate
your pages easily. (If you don't know what I mean by intermingled, you
haven't read
Kevin's
piece. Go back and do so now, and then join us when you're ready.) A
good text editor is in order. I'm sure you have a favorite of your own,
but if you're undecided and you're on a PC, I'd recommend
HomeSite.
Finally, you're going to need a database. For the purposes of this
demonstration, I'm using Microsoft Access. I decided on Access for one
very simple reason: It's sitting on my hard drive, and it's likely to be
on yours. This doesn't mean you should run away if you're using
something else. FileMaker Pro 4.1,
Paradox 7+, or any other current desktop database will work just
fine for the purposes of this tutorial - just remember as you follow
along that you need to figure out the appropriate program-specific
commands. And I think you're up for it - you strike me as the
smart-but-quiet type, the kind who reads every page of an informative
article then sends complimentary email to the writer's boss. And damn if
you aren't looking sexier already.
Lest you become disgusted with my Redmond-centric choices, let me
point something out to you. It's not totally unheard of for someone to
make the leap from coding in a home-based Win98/PWS/Access setup to a
corporate NT Server/IIS/SQL Server environment. And there's always a
well-paying
job or two available for people with these skills.
It's funny how personal well-being can trump concerns about
monopolistic practices, ain't it?
Finally, you should be able to get through this tutorial even if
you're a complete newbie. But if you have no programming experience,
take a look at JoAnne's
Intro
to Programming. You're going to need to learn this stuff eventually
- why not now?
Now that we're all up and running, let's take a look at the backend
database we'll be creating.
http://www.microsoft.com/Windows/ie/pws/default.htm
this is the most important link to help you keep on going.
make sure that all you scripts, classes help files are up to date, visit
MS download site frequently.
SUMMARY
This article describes how to install Microsoft Personal Web Server
on a Windows 98-based computer.
MORE INFORMATION
To install Microsoft Personal Web Server:
- Insert your Windows 98 CD-ROM in your CD-ROM drive.
- Click Start , and then click Run .
- In the Open box, type the following path to the Setup.exe
file, where x is the letter of your CD-ROM drive:
x :\add-ons\pws\setup.exe
- Click OK .
- Follow the instructions in Personal Web Server Setup.
NOTE : Personal Web Server is not included in Microsoft Windows
XP
|