<?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
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.