Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: include not working  (Read 4921 times)

0 Members and 1 Guest are viewing this topic.

atari

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
include not working
« on: June 17, 2004, 01:15:33 am »

Hi,

I am trying to include the main index.php into my existing site using php include statements...

if ($page=="pictures") {include("../xxxxxxxx/content/gallery/index.php");    };

not sure why but I can't get this to work, I get the following error...

Quote
Coppermine Photo Gallery seems not to be installed correctly, or you're running coppermine for the first time. You'll be redirected to the installer. If your browser doesn't support redirect, click here.

(I have already installed everything!)

I also lose all my css settings for my site when I get this error??

If I specify the url directly all works fine and I can see the albums etc. ( www.hostname.co.uk/xxxxxxxxx/gallery/index.php )

Any ideas? I can't take much more but CPG seems exactly what I need.

Thanks
 :)




Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Re: include not working
« Reply #1 on: June 17, 2004, 01:18:37 am »

CPG just doesn't work that way. It's much more complex than a simple include. 
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png)

atari

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: include not working
« Reply #2 on: June 17, 2004, 02:03:20 pm »

Shame that, thanks anyway.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.