Login   Register  
PHP Classes
elePHPant
Icontem

File: search.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2009-07-25 14:14
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();    
?>