Extract HTML from an specific URL- PHP

Discussion in 'PHP' started by hansab, Aug 20, 2010.

  1. #1
    Let say there is a site which has a price list. (tables)

    I just want to display that specific html area, on my site. I want the code to extract the html from that site and then show it on my site, so i dont need to use iframe.

    Please help me how can i do that with PHP

    Regards
     
    hansab, Aug 20, 2010 IP
  2. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #2
    Try using cURL. Then you can explode at different points of the script to cut out what you need/don't need.
     
    Pudge1, Aug 20, 2010 IP
  3. hosseintdk775

    hosseintdk775 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    In the name of the kind Allah
    Hello,
    You can use "file_get-contents()" to get informations ( anythings you like ) that you want from thst site you want,
    I am using this function to get info from another site ant it works perfectly.
     
    hosseintdk775, Aug 21, 2010 IP