Bonjour,
J'aimerais utiliser CPMFETCH sur mon site web.
J'ai bien suivi les instructions, le code a
marché et a exécuté les 4 dernières photos mise
dans la galerie.
<?php
include "./cpmfetch.php";
$objCpm = new cpm("./cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(1,4);
$objCpm->cpm_close();
?>
J'ai copié ce code dans le header.php de mon site (j'utilise wordpress),
et voilà ce que ça m'affiche :
Warning: include() [function.include]: Unable to access ./cpmfetch.php in /home/jeniworld/www/katevoegeleweb/wp-content/themes/wp-polaroid/header.php on line 82
Warning: include(./cpmfetch.php) [function.include]: failed to open stream: No such file or directory in /home/jeniworld/www/katevoegeleweb/wp-content/themes/wp-polaroid/header.php on line 82
Warning: include() [function.include]: Unable to access ./cpmfetch.php in /home/jeniworld/www/katevoegeleweb/wp-content/themes/wp-polaroid/header.php on line 82
Warning: include(./cpmfetch.php) [function.include]: failed to open stream: No such file or directory in /home/jeniworld/www/katevoegeleweb/wp-content/themes/wp-polaroid/header.php on line 82
Warning: include() [function.include]: Failed opening './cpmfetch.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/jeniworld/www/katevoegeleweb/wp-content/themes/wp-polaroid/header.php on line 82
Fatal error: Class 'cpm' not found in /home/jeniworld/www/katevoegeleweb/wp-content/themes/wp-polaroid/header.php on line 83
Je suis une novice en php, donc je ne comprends pas grand chose.
J'ai constaté que ma galerie photo est hébergé sur free, or mon site est hébergé
ailleurs. J'ai beau change l'url dans l'"include" et dans "$objCpm", rien ne marche
Merci d'avance,
Jennifer