Kod
<?php
include('simple_html_dom.php');
$html = file_get_html('http://strona.pl/');
$class = $html->find("div[id=aaaa]", 0)->innertext;
echo $class;
?>
include('simple_html_dom.php');
$html = file_get_html('http://strona.pl/');
$class = $html->find("div[id=aaaa]", 0)->innertext;
echo $class;
?>
Po wejściu na stronę pokazuje mi się:
Kod
Loading...
Wynika to z tego, że ID które co chce wczytać ładowane jest z opóźnieniem przez preloader (ajax)
Można jakoś opóźnić wczytywanie się tej funkcji:
Kod
$class = $html->find("div[id=aaaa]", 0)->innertext;
albo "pominąć" wyświetlanie się preloadera ? (strona będzie normalnie wyświetlana)