script provides a basic PHP-based Site Search Script
that searches all site files; by default, up to 20 files that contain
a specified search term and up to 5 instances of the term found
in each file will be displayed. The script performs a real-time
search, so site indexing is not required. Typically, no configuration
is required; all you need to do is copy the supplied writedocSearch
folder to your site and then call the searchsite.php
search form from any web page.
The script is offered as is
and no support is offered. For help with using PHP, see http://www.php.net/,
writedocSearch.php: is the PHP script, stored in
the script folder
searchsite.php: sample search form
images folder: contains the image used on the sample search
PHP must be installed on your web host's server.
After decompressing the downloaded
writedocSearch.zip file, move the writedocSearch
folder to your web server. To use, call the sample searchsite.php
Search Form from any web page.
instructions (typically, not needed)...
- Copy the decompressed writedocSearch folder
to your server
- Use as is with the searchsite.php Search Form
called from any web page
- Change the configuration
variables within the writedocSearch.php file
- Save the writedocSearch.php
file in the script folder within the writedocSearch
- Create your Search Form, include writedocSearch.php,
and save with extension PHP
- Call your Search Form from any web page