Hi,
I'm pretty new to using php and coppermine, but I seem to have managed to get coppermine installed and running if I go directly to the url of the index.php file (www.canadianpokerbonus.ca/cpg1412/index.htm)
This loads no problem and allows me to upload and browse photos.
The problems start when I try to use the below command to add coppermine into my html page:
<?php
require 'cpg1412/index.php';
?>
when I go to the url www.canadianpokerbonus.ca/babes.php I get the error message:
Warning: main(include/debugger.inc.php): failed to open stream: No such file or directory in /home/content/html/cpg1412/include/init.inc.php on line 26
Fatal error: main(): Failed opening required 'include/debugger.inc.php' (include_path=''.:html/cpg1412/'') in /home/content/html/cpg1412/include/init.inc.php on line 26
I think this may be caused because the php file is not in the same directory as coppermine so I guess my question is:
1. Is it possible to run coppermine from a root php page but still keep the coppermine file structure outside of the root
or
2. is it the require command that is causing the problems
I've tried searching the forums but haven't been able to find any answers...any help you can provide would be much appreciated
Coppermine can not be embedded into other pages using PHP's include or require command. Not related to install, moving accordingly.
Sorry about the location....
So if I wanted to have my url for coppermine look like www.url.ca/coppermine.php I would have to put the entire install in the root folder?
Thanks
Yes ,
- First of all move your main site somewhere else (where ever you want!)
- Copy content of cpg1412 (files and folders) to root
- Go to config and change the url of gallery
you're done
Thanks...I'll give that a try
There is no file named "coppermine.php".