How to show some content from other sites on my web sites, and when other site change content then change also in my website? Please help!

Recommended Answers

Do you have permission from the third party site to use their content?
If so, could they not provide you with a data feed?

Jump to Post

i think you need rss feed for that website

Jump to Post

Do you?

Jump to Post

All 11 Replies

Do you have permission from the third party site to use their content?
If so, could they not provide you with a data feed?

i think you need rss feed for that website

There's a lot of ways of doing it, some of those are:

  • Using IFrame to load the page
  • Using RSS Feeds
  • Using some webservice/API provided by the site(like facebook and twitter)
  • Using HTTPRequest on the server-side to load the page as text and them parse the content that you want to extract

Or just pull the data using ajax

Fobos, he can't request the data with AJAX because of the security box. AJAX requests can be made only to the same domain/subdomain of the site making the request.
To pull the data with AJAX he'd have to create an server-side page that would request the data from the site, and then the AJAX request would be made to this server-side page.

Member Avatar

If the data is meant to be shared / syndicated / licenced, the sites will probably have an API or some method by which to extract info. Cobbled techniques can be dirty / messy, e.g. cURL. Also as blocblue states, you should have permission.

Ok. Thanks for advice!

Do i have some php code for some of this choise?

Member Avatar

Do you?

i mean what code for php i must have?

Member Avatar

Depends on how the data is being presented / retrieved. Are you using an API, cURL? Unless we know what you're doing, impossible to advise.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.