I have a domain “www.example.com” located at Server A (web provider exabyte.com).

Facing two situation here. 😕

case 1:
I want to call www.example.com from www.abc.com located at Server B(same provider as Server A/same location)

case 2:
I want to call www.example.com from www.123.com located at Server C(not same provider as Server A or B /different location)

Frameset can be used to call the www.example.com, from both new domains but in my case, I don't want to use frameset.

Anyone know any alternative solution? Please guide me, and Thanks in advance.

    [man]file_get_contents/man
    can be used with URL as well as filepaths
    There are some servers where file_get_contents() function is will not work
    because of php settings. But at many servers it will work.

    Say this is index.php
    at www.123.com

    <?php
    echo file_get_contents( 'http://www.example.com/' );
    exit();
    ?>

    For example. This script you can put at your website.
    It will load a copy www.google.com startpage

    <?php
    echo file_get_contents( 'http://www.google.com/' );
    exit();
    ?>

    Well, it is not quite that simple.
    Because links to local images will not work. Because the path is corrupt.
    So, for all images in such page you need to use the full URL:

    <img src="http://www.example.com/images/logo.jpg">

    Also of course other links, like to stylesheet CSS need to be FULL URL.

      Hi halojoy,
      Thanks alot for your prompt reply,
      I will check on it and let see how far it helps my project..
      Once again, thanks....

        Dear Friends,

        Here again I explain my situation again just incase my explanation is not that good another day...
        I'm really hoping for your helping hands at the moment..

        Here's my situation.

        1. Domain www.domain1.com located at server1.com server provided by provider1.

        2. Domain www.domain2.com located at server2.com server provided by provider1.

        3. Domain www.domain3.com located at server3.net server provided by provider2.

        Currently I'm using frameset coding to direct my 2 & 3 domains pages to www.domain1.com

        for example:

        www.domain2.com (index.php)

        <frameset rows="*,0" frameborder="NO" border="0" framespacing="0">

        <frame name="mainFrame" src="http://www.domain1.com?id=1">

        <noframes></noframes>

        </frameset>

        www.domain3.com (index.php)

        <frameset rows="*,0" frameborder="NO" border="0" framespacing="0">

        <frame name="mainFrame" src="http://www.domain1.com/pages?id=2">

        <noframes></noframes>

        </frameset>

        You can see here that

        www.domain2.com actually directs to http://www.domain1.com?id=1 while
        www.domain3.com actually directs to http://www.domain1.com?id=2

        All this is done without changing the URL at the address bar which is exactly what I want...

        My problem is now, there are some limitations and problems created due to the frameset usage, Is there any other alternative solution for this?

        Really hoping for a help....
        Thanks in advanced...

          Write a Reply...