coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: qwe3 on February 10, 2007, 04:36:27 AM

Title: Split: Help wanted
Post by: qwe3 on February 10, 2007, 04:36:27 AM
<?php
  include "./path/to/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./path/to/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewRandomMedia(6,6);
  $objCpm->cpm_close();
?>


Could you help me please, would you modify the above code to include the below site in the code above. (I have been having trouble getting it to work.) I want to be able to use the code in various folders on my web page.


www.mysite.com/gallery/cpmfetch/cpmfetch.php

Thanks

RELEASE VERSION: 1.6.4

CM 1.4.10
Title: Re: Split: Help wanted
Post by: vuud on February 10, 2007, 04:40:29 AM
Quote from: qwe3 on February 10, 2007, 04:36:27 AM
<?php
  include "./path/to/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./path/to/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewRandomMedia(6,6);
  $objCpm->cpm_close();
?>


Could you help me please, would you modify the above code to include the below site in the code above. (I have been having trouble getting it to work.) I want to be able to use the code in various folders on my web page.


www.mysite.com/gallery/cpmfetch/cpmfetch.php

Thanks

RELEASE VERSION: 1.6.4

CM 1.4.10

First off, you are using the syntax for the dev release for the stable release.  Go download the dev release and install that.

Read the readme that came with it (installation instructions)

The /path/to/cpmfetch/ ... part shoud be your path to get to the cpmfetch directory and the config file.