Advanced search  

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

Pages: [1]   Go Down

Author Topic: problem with include  (Read 4274 times)

0 Members and 1 Guest are viewing this topic.

accepto

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
problem with include
« on: May 19, 2006, 04:43:38 pm »

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
« Last Edit: May 19, 2006, 05:03:46 pm by GauGau »
Logged

Nibbler

  • Guest
Re: problem with include
« Reply #1 on: May 19, 2006, 04:53:36 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: problem with include
« Reply #2 on: May 19, 2006, 04:55:22 pm »

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

accepto

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: problem with include
« Reply #3 on: May 19, 2006, 04:59:56 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.