PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 07-14-2004, 01:13 AM   #1
pbpub
Green Mole
 
Join Date: Jun 2004
Posts: 12
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
pbpub is offline   Reply With Quote
Old 07-14-2004, 01: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
Old 07-14-2004, 05:00 AM   #3
pbpub
Green Mole
 
Join Date: Jun 2004
Posts: 12
Thank you, but I have this reply:
Cannot find config.php file.
pbpub is offline   Reply With Quote
Old 07-14-2004, 08:33 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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'
__________________
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
Old 07-14-2004, 09:00 AM   #5
pbpub
Green Mole
 
Join Date: Jun 2004
Posts: 12
I've always the message

Cannot find config.php file.
pbpub is offline   Reply With Quote
Old 07-14-2004, 10:44 AM   #6
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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.
__________________
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
Old 07-15-2004, 06:44 AM   #7
pbpub
Green Mole
 
Join Date: Jun 2004
Posts: 12
Hi. All is alright! You are a chef! Thank you!

Pascal

http://www.theo4you.org
pbpub is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to manual insert into base links for index? zaartix How-to Forum 3 12-09-2004 01:36 PM
How do I Insert PhpDig in a website eric_gitonga How-to Forum 6 11-22-2004 05:45 AM
Insert PhpDig in a website pbpub Troubleshooting 6 06-30-2004 05:26 AM
10. Insert PhpDig in a website?? andy_pandy How-to Forum 2 03-09-2004 10:00 AM


All times are GMT -8. The time now is 10:16 PM.


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