PHP Classes

Fatal Error Class 'SiteSearch' not found

Recommend this page to a friend!

      Google Custom Search  >  All threads  >  Fatal Error Class 'SiteSearch' not found  >  (Un) Subscribe thread alerts  
Subject:Fatal Error Class 'SiteSearch' not found
Summary:Google Site Search error
Messages:1
Author:Ti Ju
Date:2012-02-08 11:00:30
 

  1. Fatal Error Class 'SiteSearch' not found   Reply   Report abuse  
Picture of Ti Ju Ti Ju - 2012-02-08 11:00:30
Hi there,

I get a the above message for examples.php or when i try to create a new SiteSearch object in my project.
Tried the following setup:
1. Have SiteSearch.php and SiteSearchException.php in the same folder as my project files.
2. include SiteSearch.php and SiteSearchException.php in my project file as follows:

<?php

use Search\Google,
Search\Google\Exceptions;

require_once 'SiteSearchException.php';
require_once 'SiteSearch.php';

$search = new SiteSearch('CSE Key Here', 'utf-8', GoogleCustomSearch::HTML);

Am I missing something?
Thank you for the help.

Tiha