Importing content from another website

I am looking for a script in php that can extract content between a <div> tag with a specified ID from an external website onto another website.

E.g.

External website has a property listing and on that page they have a div called “propertytitle” and in that div the text says “New property for sale”. How would I grab that text (New property for sale) from in between the div tags and display it on my website?

And I will just add I do have permission to use this content :cool:

Thanks in advance for any help.

Looks like I found what I am after… well a start anyway. I can’t post the link to the resource, but if anyone is interested look at the PHP function file_get_contents() or fopen() and you can also use CURL.