copy content from one website to another

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default copy content from one website to another

    Hi,

    I'd like to automatically display content from my friends website on my
    website. Is there anyway I can direct php to a URL and have the content of
    that page put on my page?

    Thanks,
    Aaron


    aaron Guest

  2. Similar Questions and Discussions

    1. Website Copy Protection
      I'm trying to protect our websites since there are several companies out there that have our material on their sites unauthorized. When I use...
    2. Is It Possible to Copy Flash Player Content?
      Does anyone out there know how to copy content which plays on Macromedia Flash player. Some of the vidoes are worth saving. Thanks.:confused;
    3. Problems with content in Website
      I have a website, and i am using <div> tag to css the site (don't know if good or bad) and it works fine. My problem is that when I take the site...
    4. Local copy of website files
      I set up a website for someone about a year ago and since then they have been administering the site using Contribute. I've never used Contribute so...
    5. lost copy of website
      I would really appreciate some help. I had kept a copy of my website compressed on a floppy. I now cannot retrieve it. Does that mean I have to...
  3. #2

    Default Re: copy content from one website to another

    aaron wrote:
    > Hi,
    >
    > I'd like to automatically display content from my friends website on my
    > website. Is there anyway I can direct php to a URL and have the content of
    > that page put on my page?
    I think RSS is what you're looking for. There's RSS feed parsers
    available for PHP. Your friend would have to publish his site's contents
    as an rss feed.

    Regards,
    Ruben.
    Ruben van Engelenburg Guest

  4. #3

    Default Re: copy content from one website to another

    Ruben van Engelenburg wrote:
    > aaron wrote:
    >> Hi,
    >>
    >> I'd like to automatically display content from my friends website on my
    >> website. Is there anyway I can direct php to a URL and have the content
    >> of that page put on my page?
    >
    > I think RSS is what you're looking for. There's RSS feed parsers
    > available for PHP. Your friend would have to publish his site's contents
    > as an rss feed.
    >
    > Regards,
    > Ruben.
    ....or iframes or frames. You could do redirects but that will take people
    off your site. Alternatively you could proxy requests like:

    <?php
    $path_to_cut='/friends/ruben/';
    $therebase='http://rubenserver.com/';
    $real_url=str_replace(strtolower($SERVER['REQUEST_URI'],$path_to_cut,
    $therebase);
    print implode('', file($real_url));
    ?>

    but this is a can of worms as you'd need re-writing rules in your server
    config to get everything running thru the one script and the above will not
    accomodate POST/GET/COOKIES

    HTH

    C.

    Colin McKinnon Guest

  5. #4

    Default Re: copy content from one website to another


    "Colin McKinnon" schreef ...
    > Ruben van Engelenburg wrote:
    > > aaron wrote:
    ---- 8< --[cut]-- >8 -----

    Or use Snoopy, to fetch/grab parts of your friends website:

    [url]http://sourceforge.net/projects/snoopy/[/url]

    Good luck,

    Gijs


    Gekke Gijs uit de Tekenfilm Guest

  6. #5

    Default Re: copy content from one website to another

    Colin McKinnon wrote:
    [snip]
    > ...or iframes or frames. You could do redirects but that will take people
    > off your site. Alternatively you could proxy requests like:
    >
    > <?php
    > $path_to_cut='/friends/ruben/';
    > $therebase='http://rubenserver.com/';
    Hey, where did my name come into play? ;)
    But seriously I think RSS is the cleanest solution. The advantage of RSS
    over something like frames or the solution you offered is that the
    website can use its own layout to display the feed-data.

    Regards,
    Ruben.
    Ruben van Engelenburg Guest

  7. #6

    Default Re: copy content from one website to another

    Gekke Gijs uit de Tekenfilm wrote:
    > "Colin McKinnon" schreef ...
    >
    >>Ruben van Engelenburg wrote:
    >>
    >>>aaron wrote:
    >
    >
    > ---- 8< --[cut]-- >8 -----
    >
    > Or use Snoopy, to fetch/grab parts of your friends website:
    >
    > [url]http://sourceforge.net/projects/snoopy/[/url]
    >
    > Good luck,
    >
    > Gijs
    >
    >
    I would have to agree with Ruben on this one, RSS feeds are quite
    helpfull and it's really not a lot of work for your friend to manage.

    Best regards,
    CrashandDie Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139