PHP Classes

File: readme.txt

Recommend this page to a friend!
  Classes of L   Quick Search   readme.txt   Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: read me
Class: Quick Search
Integratation with various search engines
Author: By
Last change: fixed change descr for inirw.class.php
Date: 20 years ago
Size: 1,237 bytes
 

Contents

Class file image Download
readme.txt for quickSearch.php For the latest version go to: http://www.phpclasses.org/browse.html/package/1443.html /////////////////////////////////////////////////////////////////////// With this class you can combine various search services into one search box. The search and the services are defined through .ini files. Services which use POST, GET or APPEND to an url can be specified. An .ini file consists of two parts. The general desctption and the parameters block. In the general block the id must be unique. The URI and description parameter are not used for now. In the parameters block all submitted parameters must be given. The parameter for search query has a placeholder (%s). Examples for the three possible service types (POST => amazon.ini ,GET => google.ini , APPEND => php2.ini) are provided. This class requires two other classes to work, please download them: inirw @ http://www.phpclasses.org/browse.html/package/912.html Forms @ http://www.phpclasses.org/browse.html/package/931.html IMPORTANT: You need to change line 120 in inirw.class.php to to make it work with all the provided ini files: if(preg_match("/^\[([\w\d-]+)\][\r\n]*$/", $line, $matches))