How to make cpmfetch work if coppermine is on the root directory ? I tried dev releases, stable release but none seems to work :-(
Thanx,
Quote from: cedriclr on October 24, 2006, 02:05:18 PM
How to make cpmfetch work if coppermine is on the root directory ? I tried dev releases, stable release but none seems to work :-(
Thanx,
Dev releases work fine in this configuration. Put the cpmfetch directory right off your root.
All of the development was actually done in this configuration so it should be fine.
Send error if you have a problem.
i have installed coppermine at root
and at root i have put this file:
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?>
but it doesnt work i get this error:
Warning: cpm_dao(/): failed to open stream: Success in /home/topfoto/public_html/cpmfetch/cpmfetch_dao.php on line 56
Fatal error: cpm_dao(): Failed opening required '/' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/topfoto/public_html/cpmfetch/cpmfetch_dao.php on line 56
i tried:
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?>
but i get:
Error: config file not specified and default not found - did you run the install program?
can you tell me how to use it.
i need to use cmpfetch outside of cpmfetch directory. if i use inside it works but i need outside.
Thank you
Quote from: mgallego on January 09, 2007, 07:42:56 PM
i have installed coppermine at root
and at root i have put this file:
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?>
but it doesnt work i get this error:
Warning: cpm_dao(/): failed to open stream: Success in /home/topfoto/public_html/cpmfetch/cpmfetch_dao.php on line 56
Fatal error: cpm_dao(): Failed opening required '/' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/topfoto/public_html/cpmfetch/cpmfetch_dao.php on line 56
i tried:
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?>
but i get:
Error: config file not specified and default not found - did you run the install program?
can you tell me how to use it.
i need to use cmpfetch outside of cpmfetch directory. if i use inside it works but i need outside.
Thank you
You need to pass the relative path to the cpmfetch config file
so something more like
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?>
That is if you are in the root and running the dev version.