Intalling in the same server, but different carpets. Intalling in the same server, but different carpets.
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Intalling in the same server, but different carpets.

Started by Keiran, August 10, 2010, 06:40:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Keiran

Hey guys!
I just installed CpmFetch in my gallery here http://www.vampire-diaries.es/galeria
The problem is that my site where i wanna show the latest uploads photos is here http://www.vampire-diaries.es/web (it's now in hiatus)

I put the code but the pictures won't show and i guess i know the problem, i just don't know how to fix it haha.
Ok, the code is this, isn't?

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


The problem is this, i think. The code is getting this url "http://www.vampire-diaries.es/web/galeria/etc..." but i want to put this url "http://www.vampire-diaries.es/galeria" without the "/web", that's the right url...Please, anyone know something?

Keiran

Problem solved!
Just typing "../galeria/etc" with tho points goes down one level ;) but thanks anyway