Thread: Insert phpdig
View Single Post
Old 07-14-2004, 12:58 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Re: Insert phpdig


Quote:
Originally posted by pbpub
...
phpdig's directory is http://www.theo4you.org/recherche/
Install the search in http://www.theo4you.org/testrecherche.php

I've make in the second an include:
<?php include( "http://www.theo4you.org/recherche/search.php") ; ?>
...

Hi. Do not use an include. Copy http://www.theo4you.org/recherche/search.php to http://www.theo4you.org/testrecherche.php and then in http://www.theo4you.org/testrecherche.php change:
PHP Code:
$relative_script_path '.'
to:
PHP Code:
$relative_script_path './recherche'
Next in http://www.theo4you.org/recherche/libs/function_phpdig_form.php change:
PHP Code:
$relative_script_path '.'
to:
PHP Code:
$relative_script_path './recherche'
Then in http://www.theo4you.org/recherche/includes/config.php change:
PHP Code:
define('SEARCH_PAGE','search.php'); 
to:
PHP Code:
define('SEARCH_PAGE','testrecherche.php'); 
and also add the indicated line:
PHP Code:
if ((!isset($relative_script_path)) || (($relative_script_path != ".") && 
(
$relative_script_path != "./recherche") &&  // add this line
($relative_script_path != "..") && ($relative_script_path != ABSOLUTE_SCRIPT_PATH))) {
  
// echo "\n\nPath not recognized!\n\n";
  
exit();

__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote