PDA

View Full Version : Insert phpdig


pbpub
07-14-2004, 12:13 AM
Hello

I would insert phpdig in an other phpdig's directory.

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") ; ?>

But I've an error:
Parse error: parse error, unexpected T_STRING in http://www.theo4you.org/recherche/search.php on line 1

What's falsh?

Thank you

Charter
07-14-2004, 12:58 AM
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:

$relative_script_path = '.';

to:

$relative_script_path = './recherche';

Next in http://www.theo4you.org/recherche/libs/function_phpdig_form.php change:

$relative_script_path = '.';

to:

$relative_script_path = './recherche';

Then in http://www.theo4you.org/recherche/includes/config.php change:

define('SEARCH_PAGE','search.php');

to:

define('SEARCH_PAGE','testrecherche.php');

and also add the indicated line:

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

pbpub
07-14-2004, 04:00 AM
Thank you, but I have this reply:
Cannot find config.php file.

Charter
07-14-2004, 07:33 AM
Forgot one...

Copy http://www.theo4you.org/recherche/clickstats.php to http://www.theo4you.org/clickstats.php and then in http://www.theo4you.org/clickstats.php change:

$relative_script_path = '.';

to:

$relative_script_path = './recherche';

pbpub
07-14-2004, 08:00 AM
I've always the message

Cannot find config.php file.

Charter
07-14-2004, 09:44 AM
Hi. Only search.php and clickstats.php have code to generate that message so check that $relative_script_path is set correctly in those files.

pbpub
07-15-2004, 05:44 AM
Hi. All is alright! You are a chef! Thank you!

Pascal

http://www.theo4you.org