include not working include not working
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

include not working

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

Previous topic - Next topic

0 Members and 2 Guests 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.