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: Correct path in Wordpress  (Read 3521 times)

0 Members and 1 Guest are viewing this topic.

hilaryglam

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Correct path in Wordpress
« on: August 01, 2011, 10:25:32 pm »

Hi!

I'm really confused publishing such easy question, but anyway the problem exists ;)
I can't make a correct path to the CPMFETCH files

During installation, the script gives me this code:
<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>


But I use it in wordpress' page header.php

I've put the cpmfetch code there: http://sitename.com/main/wp-content/themes/test/header.php
Gallery is in http://sitename.com/gallery

So what's the correct path?
should  it be with ONE dot or TWO?
(../../) or (././)
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.