problem with include problem with include
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

problem with include

Started by accepto, May 19, 2006, 04:43:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

accepto

Hallo,

I have a problem with calling the index.php . I want to call in my own index.php  the cpg index.php with this command:
include("./tangafun/index.php");
tangafun is the subdir, where I installed cpg. It is working fine, when I access it directly or with an iframe.

I read the "path"  discussions and managed to avoid the "fatal errors", but it is still not working.
With this:
$test= ini_set('include_path',ini_get('include_path').';:./usr/share/php'.';:./usr/include/'.';:./usr/share/'.';:./tangafun/include/'.';:./tangafun/'); 
$test=ini_get('include_path');
//echo $test;
include("./tangafun/index.php");

I get now this error:
Coppermine Photo Gallery seems not to be installed correctly, or you are running coppermine for the first time. You'll be redirected to the installer. If your browser doesn't support redirect, click here.

I have no idea what to try next - any ideas??

Thank you all very much in advance and greetings from Spain
Claudia

Nibbler

You can't include() Coppermine, it's not designed for that.

Joachim Müller

coppermine simply can't be integrated into an existing web page using PHP include/require commands - that's not the way it works. Do as suggested in the docs and create a theme that matches your site's layout, or use the iframe method, or use the custom_header/footer includes built into coppermine to include your surrounding stuff/navigation. Your choice.

@Nibbler: you beat me to it  ;)

accepto

Oh well, that explains everything ;D. Thank you for the very fast answers! I should have asked sooner.
So I will work on the theme files this weekend...

Claudia