Correct path in Wordpress Correct path in Wordpress
 

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

Correct path in Wordpress

Started by hilaryglam, August 01, 2011, 10:25:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hilaryglam

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 (././)