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

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

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