Hi. There is a tutorial
here on how to include files in the templates, but if you want to have your own page from scratch, just do the following.
In search.php use 'array' rather than $template, assigning the output from phpdigSearch to a variable, like so:
PHP Code:
$the_output = phpdigSearch($id_connect, $query_string, $option, $refine,
$refine_url, $lim_start, $limite, $browse,
$site, $path, $relative_script_path, 'array');
Afterwards add the following line:
PHP Code:
print_r($the_output);
Then using a known keyword, do a search via URL (http://www.domain.com/dir/search.php?query_string=keyword) to see all the key value pairs that could be used.