clone website help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
doforumda
Forum Newbie
Posts: 16
Joined: Thu Dec 25, 2008 1:07 am

clone website help

Post by doforumda »

hi
i want to clone a news website. what i want is the news website should be cloned and open in my site and when the user click on any link that link should also clone and open in a new window in my site.
how can this be achieved?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: clone website help

Post by jackpf »

How do you mean clone?

You mean like...an iframe, or using PHP?

If the latter, you should use cURl.

Although I don't see the point in cloning a page, when it obviously already exists. Plus, it's probably not legal.
doforumda
Forum Newbie
Posts: 16
Joined: Thu Dec 25, 2008 1:07 am

Re: clone website help

Post by doforumda »

well i want to clone the news from a news website so i will place that news in my site by giving the reference of the official website
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: clone website help

Post by jackpf »

Oh right.

Well, if you just want to display the full page, then you can use curl.

If you want to extract part of it, or read an xml feed you'll probably have to use something like DOM.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: clone website help

Post by califdon »

doforumda wrote:well i want to clone the news from a news website so i will place that news in my site by giving the reference of the official website
For your sake, I hope you have written permission to do that from the news website. I'm not a lawyer, but I believe they can sue you for stealing their content. And it's extremely easy for them to trace you.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: clone website help

Post by jackpf »

I'd use soemthing like yahoo if I were you. I think they give news feeds for free....
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: clone website help

Post by Benjamin »

If the news provider doesn't offer RSS feeds or an API of some sort, I can say with almost certainty that you are violating the TOS.

:arrow: Locked
Locked