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();
}