Advanced search  

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

Pages: [1]   Go Down

Author Topic: Intaller the code on its site  (Read 4247 times)

0 Members and 1 Guest are viewing this topic.

thekidfry

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
Intaller the code on its site
« on: March 13, 2008, 06:39:19 pm »

Hello, I would like added on my site, the code
Code: [Select]
<?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
Logged

capecodgal

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 123
Re: Intaller the code on its site
« Reply #1 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:

Code: [Select]
<?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
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.