This can be done using marge core php and codeigniter. put your sphider folder with your application folder
-attachment
-sphider
-system
-etc
Make sure the database parameter is set in the sphider / sphider / setting / database.php folder
if ur using .htaccess then add sphider folder to it.
Then make one controller in the application as follows
public function index()
{
$url = $this->base_url.'sphider/admin/spider.php';
$fields = array(
'url' => urlencode("URL OF YOUR Page That you want to index"),
'soption' => urlencode("level"),
'maxlavel' => urlencode("0"),
'reindex' => urlencode("1")
);
$fields_string="";
foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
rtrim($fields_string, '&');
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST, count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
$result = curl_exec($ch);
error_reporting(E_ERROR | E_PARSE);
curl_close($ch);
redirect("YOUR REDIRECTING URL");
}
}
and you're done with indexing.