Home @ Phathole.com
Get Your Web Site Ranked First, Click Here to Find Out How!
 
Stock Market

PhatSearch v1.11

Features:
  • Features a local database that you can use to list your favorite sites, create listings for other affiliate programs, sell listings, etc.
  • Local search results are followed by bidded listings from Phathole.com. The username variable can be set so that you can earn advertising funds from these listings.
  • The listings from Phathole.com are followed by listings from DMOZ - "The Open Directory Project" so that you will be able to have more complete search results.
  • You are able to set how many search results are displayed on each page.
  • You can use your own headers and footers so that the search results look just like the rest of your site.
Requirements:
  • A webhosting account on a server with:
  • Perl5 or above.
  • LWP::UserAgent

    Your server must be running Perl5 or above, and have the LWP::UserAgent perl module installed. (Most webhosting companies will install these for you if they are not already installed. If they don't, I recommend redriverhosting.com as a hosting company. And I assure you that they have these installed on all of their servers.)

Install Instructions:

Open s_vars.pm in your favorite text editor and change the xxxxx in $USERNAME='xxxxx'; to your phathole.com username, if you don't have one, you can sign up at http://www.phathole.com/affiliate01.shtml and sign up for "affiliate option 1". You can earn advertising funds for you web site. This is optional, if you don't want to take part in this, just leave it as xxxxx. You can change the amount of listings that are displayed on each page by changing the 25 in $RESULTS_PER_PAGE=25; to the number of search results you want displayed on each page of search results.

You need to create a template for your search results pages. This makes it so that your search results can look like the rest of your site. You can create it however you want but I recommend you put a comment on the page where you want your
search results displayed (something like this <!--- split ---> ) because you are going to have to split the file into a header and a footer. Also, do not use SSI tags
because the most likely won't work. After you are finished with your template, save it, and close your editor. Open the file in a text editor, and copy everything above your comment (<!--- split --->). Then open header.html in your text editor, do a select all, click paste, and save header.html. Now go back to the template you created (which is still in the text editor and copy everthing after your comment. Open footer.html in the text editor, do a select all, click paste, and save footer.html.

You can also include your own listings in the search results by adding them to base.dat. This is set up to have one listing per line with the different fields seperated by a tab space, like this:

keyword keyword2 Title Your Description URL

I recommend you use a programmers text editor for this, CuteHTML (it comes with CuteFTP) is what I use and it works great. Otherwise the "word wrap" feature often messes it up. I will be adding a web-based admin for the next version so check back often and download the new version.

Now, Upload all files in ASCII mode, to a CGI enabled directory on your server. All files in this package must be in the same directory on your server. CHMOD search.cgi to 755, base.dat to 666, and all other files to 644.

Add the search box below to your web pages (changing the URL to the URL of your search script first of course.)

<form action="http://www.your_site.com/cgi-bin/search.cgi" method="POST">
<input type="text" size="13" name="keyword">
<input type="submit" name="submit" value="Search">
</form>

And your ready to go. Enjoy!!!

What's new in v1.11

Fixed a minor bug that didn't send users to the right URL.

Notice:

As on any system, with any scripts or programs, there is a risk of security breach, file corruption, etc. Because of this reason, PhatSearch is distributed on a "Use at your own risk basis". You agree that by using this script, that Phathole.com, or any person or entity associated with them, will not be held liable in any way for any reason.

Download:

 


Home   Promote your site   Put Phathole.com on your site   Manage account

Copyright © 2001 Phathole.com. All Rights Reserved. Download Archive Horoscopes Movie Reviews News Up to the Minute Weather