PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Insert phpdig (http://www.phpdig.net/forum/showthread.php?t=1079)

pbpub 07-14-2004 12:13 AM

Insert phpdig
 
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

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



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:
PHP Code:

$relative_script_path '.'

to:
PHP Code:

$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


All times are GMT -8. The time now is 05:23 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.