coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: thekidfry on March 13, 2008, 06:39:19 PM

Title: Intaller the code on its site
Post by: thekidfry on March 13, 2008, 06:39:19 PM
Hello, I would like added on my site, the code
<?php
  
include "./cpmfetch.php";
  
$objCpm = new cpm("./cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,4);
  
$objCpm->cpm_close();
?>


but they says to me

Quote
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/raphaelweb/test/index.php on line 115

Warning: include(http://galleryraphaelweb.awardspace.com/cpmfetch/cpmfetch.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/raphaelweb/test/index.php on line 115

Warning: include() [function.include]: Failed opening 'http://galleryraphaelweb.awardspace.com/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /home/raphaelweb/test/index.php on line 115

Fatal error: Class 'cpm' not found in /home/raphaelweb/test/index.php on line 116

help me please thank
Title: Re: Intaller the code on its site
Post by: capecodgal on March 31, 2008, 10:55:02 PM
where is your cpmfetch folder located in relation to the index of the main site?

Try this instead:

<?php
  
include "./cpg/cpmfetch.php";
  
$objCpm = new cpm("./cpg/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,4);
  
$objCpm->cpm_close();
?>



replace cpg with the name of your gallery folder