SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

    Thanks in advance for any help.

  2. #2
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.


Bookmarks

Posting Permissions

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