PHP Classes

File: search.php

Recommend this page to a friend!
  Classes of Forud A   Open Search for PHP   search.php   Download  
File: search.php
Role: Example script
Content type: text/plain
Description: example
Class: Open Search for PHP
Add support to a given search engine in a browser
Author: By
Last change:
Date: 15 years ago
Size: 745 bytes
 

Contents

Class file image Download
<?php
   
require_once ('osearch/opensearch.php');
    require_once (
'osearch/osresult.php');
    if (isset(
$_GET['q']))
       
$query=$_GET['q'];
   
$tmp=new OSResponse($query,0,0,0,'Content search','osdescription.php');
   
$x=' A';
   
$tmp->add_result($query.$x,$x,'Result for '.$query.$x);
   
$x++;
   
$tmp->add_result($query.$x,$x,'Result for '.$query.$x);
   
$x++;
   
$tmp->add_result($query.$x,$x,'Result for '.$query.$x);
   
$x++;
   
$tmp->add_result($query.$x,$x,'Result for '.$query.$x);
   
$x++;
   
$tmp->add_result($query.$x,$x,'Result for '.$query.$x);
   
$x++;
   
$tmp->add_result($query.$x,$x,'Result for '.$query.$x);
   
$x++;
   
$tmp->add_result($query.$x,$x,'Result for '.$query.$x);
   
$tmp->serve_xhtml();
?>