PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Rubens Takiguti Ribeiro  >  Search Words  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of use
Class: Search Words
Extract the keywords used in search sites
Author: By
Last change:
Date: 12 years ago
Size: 304 bytes
 

Contents

Class file image Download
<?php
require(dirname(__FILE__).'/searchwords.class.php');

// Example of $_SERVER['HTTP_REFERER']
$url = 'http://www.google.com/search?q=PHP&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:pt-BR:official&client=firefox-a';

// Getting search words and printing
$words = SearchWords::getWords($url);
echo
$words;