tags:

views:

36

answers:

4

Hi all,

I am making a new website using PHP and I want to fetch the data from another website in which I have my profile, which contains wallpapers, logos etc.

I want to fetch the data from that website and display it on my new website in the content section.

Please give me some ideas on how to do this task in PHP.

Thanks in advance.

A: 

you can use curl to make a web request to a web address and get the html back.

spinon
A: 

You could use cURL to send requests to the remote site and fetch the results.

Darin Dimitrov
+3  A: 

See e.g. the curl extension or the http wrapper for retrieving the content.

See the DOM extension for parsing the HTML.

Artefacto
A: 

Depending on the who the site is, they may have provided an API for accessing that info. That generally applies for larger sites like facebook and such.

tsgrasser