include not working include not working
 

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]

Main Menu

include not working

Started by atari, June 17, 2004, 01:15:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

atari

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
:)





hyperion

CPG just doesn't work that way. It's much more complex than a simple include. 
"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

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

atari

Shame that, thanks anyway.