Welcome! Log In Create A New Profile


Calling search script from class

Posted by mczaar 
Calling search script from class
April 16, 2014 12:56PM
because of the structure of my website I want to call sphider search.php from another class like this:

class Search {
static function search(){
require_once 'search.php';

So I can call the search:

$_GET variables are set as they should be. If I try to call it "normal way" (whitout class) it works. This way I get no empty results set. Did anyone encounter simillar probelen and found a solution?

Thank you for your help.
Sorry, only registered users may post in this forum.

Click here to login