Two different Servers Two different Servers
 

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

Two different Servers

Started by mystifiedlala, March 26, 2008, 10:15:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mystifiedlala

Hey there,
I've installed this mod on my cpg in a same server and it's working great but now I'm trying to install it on two different servers.. I mean the gallery's on one server and the main site is in another server so I wonder if cpmFetch will work and what's the code to use?

capecodgal

The easiest way I have made this is work is by using an iframe


<iframe src="http://hayden-collective.net/randomimages.php" frameborder="0" width="240"
height="170" marginwidth="0" marginheight="0" scrolling="no"> </iframe>


So create the php file on the server where the gallery is and place the fetch inside of it; make sure it works on that server. Now on the main site use the iframe to call the script from the other server. But make sure you tell the images to open in a new window otherwise they will open within the iframe.