Upgrading the Search Script
My search script like any computer program needs to be upgraded on occasion to fix problems with the script and perhaps to add functionality. All updates within 12 months of your original purchase are included in the purchase price.
Since I first published the script in September 2003 I have applied a number of fixes and enhancements as listed below. The current version number is 2.2
- Amended the build page for both flat file and database to add additional field validations.
- Additional validations on spidering pages:
- If <title> and <h1> are both missing then page will not be indexed.
- If description missing then title will be used.
- If keywords missing then title will be used with commas replacing spaces.
- If keywords start with or end with a comma the comma will be removed.
- Additional validation for both spider and edit:
- If keywords contains two, three, or four adjacent commas then the surplus commas will be removed.
- Additional validations on spidering pages:
- find.php renamed resinc.php and find.htm renamed to search.htm to avoid confusion
- new parameter $imgdir added to config.php. If this field is not set to '~' and a gif, jpg, or jpeg image exists in the specified directory with the same filename as a local page listed in the results then that image will be displayed at the front of the entry in the results.
- Updated to allow for multiple search tables with the database version. Both database and flat file versions updated to allow gif, jpg, jpeg, and png files to be added to the search results. Also rwl.php amended to allow images to be added to the database version in bulk. Display of images next to results now works for sub-directories as well. Where the images in the search result are from the thumbnail directory they will be not be displayed as links.
- Where images are displayed in the search results and do not link to anything they will be overlaid with a transparent image.
- Fix to convert all text (not just some) to lowercase before comparing.
- New configuration option to turn off display of number of matches on each entry.
- New configuration option to restrict multiword search to those entries matching on all words instead of any one or more words.
- Version 2.0 sees a major rewrite of much of the processing. Two extra search fields have been added called category and subject. The search results script has also now been completely rewritten to allow you to lay out the results page however you like as well as being able to display long lists of results over multiple pages.
- ability to scale down images displayed with the results if required.
The easiest way to implement these changes to your copy of the script is to resend the script (you will need the item and invoice numbers from your original purchase to request a resend).
A conversion script is provided for those updating from version one to version two.


