LouPhi
04-02-2008, 05:29 AM
Hi
One of my customers has two websites - similar, but one is a more specialised version of the other (GPS products). The main website needs to display products which are mainly shown on the GPS product site - and rather than have 2 product pages the same (which would mean double the administration if/when any products needed changing or amending etc) I would like to have a php page on both sites, which calls the same .htm element into their page - showing the exact same table of products.
My question is this - can I use the <?php include ?> from the 'other' site to call the htm file which is actually situated on the 'other' domain?
I've tried using this exact script "<?php include ('http://domain.co.uk/filename.htm') ?>" but it doesn't work (I get a nasty "failed opening" message displaying on the page.
Any ideas - do I need to adjust the php in some way, or can it simply not be done??
Thanks for any help
LouPhi - forgot to mention, both domains in question reside on the same server..... if this helps :O)
One of my customers has two websites - similar, but one is a more specialised version of the other (GPS products). The main website needs to display products which are mainly shown on the GPS product site - and rather than have 2 product pages the same (which would mean double the administration if/when any products needed changing or amending etc) I would like to have a php page on both sites, which calls the same .htm element into their page - showing the exact same table of products.
My question is this - can I use the <?php include ?> from the 'other' site to call the htm file which is actually situated on the 'other' domain?
I've tried using this exact script "<?php include ('http://domain.co.uk/filename.htm') ?>" but it doesn't work (I get a nasty "failed opening" message displaying on the page.
Any ideas - do I need to adjust the php in some way, or can it simply not be done??
Thanks for any help
LouPhi - forgot to mention, both domains in question reside on the same server..... if this helps :O)