Basically what I want to do is get a particular table row of a website. the table has an id of "table-data". I have already written the PHP but I noticed that the file_get_html doesn't actually get the data that is dynamically loaded. How should I approach?
include_once('simple_html_dom.php');
$html = file_get_html('http://www.2gheroon.ir');
$es = $html->find('table.data-table');
for ($i=0 ; $i<count($es); $i++) {
echo $es[$i]->plaintext;
}
echo $html;