Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End extract div container of any website in our site

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43464
    devil3682116
    Participant

    if anyone know how to extract same data container of any div in our own website…from php??
    I have dont this





    $content = file_get_contents_curl(“http://www.gsmarena.com”);

    $html = str_get_html($file_contents);
    $elem = $html->find(‘div[id=main]’, 0);
    ?>
    ?>

    and nothing happened. :(

    #128617
    devil3682116
    Participant

    ok i got the solution

    $html = file_get_html(“http://www.gsmarena.com”);
    $displaybody = $html->find(‘div[id=brandmenu]’, 0);
    echo $displaybody;

    ?>

    but my question is how to dynamically change the links….i want the php code where our links to the site changes according to gsmarena.com changes its link…

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.