PHP search engine

Looking for volunteers to join your project? Need help with a script but can't afford to pay? Want to offer your services as a volunteer to build up your portfolio? This is the place for you...

Moderator: General Moderators

Post Reply
wat
Forum Newbie
Posts: 6
Joined: Mon Dec 08, 2003 10:26 am

PHP search engine

Post by wat »

Question. Has anybody use this PHP search engine?

http://www.hansanderson.com/php/search/

If so, can someone be so kind and help me to install it

Thanks!
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

Did you read the readme or are you just having problems with it?
1. INSTALLING / SETTING UP
NOTE: you will need to add the path to the
search/ directory to your php_include_path
or else do a lot of hacking to have all the
files found!

You should have the following files:

* chmod.sh - shell script to help
set up some permissions

* stopwords.php - list of words you don't
want to index or search

* class.searchengine.php - main class

* config.php - configuration directive.
EDIT THIS! You will need to
edit the paths of directorys
and the unix program "sort"
(use 'which sort' to find path)

* README - this file

* class.timer.php - class to time searches
written by David Sklar
<sklar@student.net>

* filesystem.example - an example of how to index files
on your hard drive.

* search.db - example db for indexing, testing.
There are 27 jokes, some funny, some
not. First create the database search,
then import this file. You might need
root privileges.

prompt$> mysqladmin create search
prompt$> mysql -pyourpasswd search < search.db

* index.php - sample indexing script using provided
jokes database. You need to be able
to use PHP from the command line to
run it (or modify it to work with your
web server). Edit about line 11 to
your database username and password.

* search.php - test search script from command line
You need to have the cgi version of
php to run it. See the www/ directory
for samples of searching via a web
page.

And these directories
data/ - where the data lives
tmp/ - used for indexing/merging
(temporary files)
www/ - sample search form and
results page using provided
jokes database. Copy these into
your web server htdocs in a place
you can test them.
wat
Forum Newbie
Posts: 6
Joined: Mon Dec 08, 2003 10:26 am

Post by wat »

I've read through it, but my knowledge of php is minimal so a lot of things I simply do not understand ... :oops:

That's why I am asking for some help in installing it on the website which I am currently bilding for our minority. Do you think you could help????
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

I'm moving this to the Project Help Wanted / Volunteer Work forum as it's more relevant here than in the PHP Code forum.

Mac
gobo
Forum Newbie
Posts: 9
Joined: Sun Dec 28, 2003 5:29 pm

Post by gobo »

email him, he's a helpful guy!
Post Reply