Howto if coppermine on root dir ? Howto if coppermine on root dir ?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Howto if coppermine on root dir ?

Started by cedriclr, October 24, 2006, 02:05:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cedriclr

How to make cpmfetch work if coppermine is on the root directory ? I tried dev releases, stable release but none seems to work :-(

Thanx,

vuud

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.


Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

mgallego

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

vuud

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.


Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco