Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Howto if coppermine on root dir ?  (Read 4954 times)

0 Members and 1 Guest are viewing this topic.

cedriclr

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Howto if coppermine on root dir ?
« 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,
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Howto if coppermine on root dir ?
« Reply #1 on: October 26, 2006, 06:17:08 am »

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.


Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Howto if coppermine on root dir ?
« Reply #2 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Howto if coppermine on root dir ?
« Reply #3 on: January 09, 2007, 09:38:57 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

Code: [Select]
<?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.


Logged
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
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 19 queries.