Good day. Actually, what's the problem, the elements I get in half with grief. But there is a certain tendency that during loading I can get the item and I can not get it, who knows what the problem might be? I tried both on hosting and on LAN and on VPS, I sinned that the resource was not enough, it was not the case.
I would be very grateful for the help.
P.S. Here is the link where the script is running, if you update the page a couple times, then you will see the problem. Below is the "code".
<?php require_once 'simple_html_dom.php'; $html = file_get_html('https://koleso2000.ua/shina/zimnyaya/michelin-alpin-a5/195-65r15-91-t-neship'); sleep(5); if(count($html->find("/html",0))) { foreach($html->find('div.in-top p') as $model) {echo ''.$model.'';} echo '<br>'; foreach($html->find('div.second p a',1) as $brand) {$brand = $brand->plaintext; echo ''.$brand.'';} echo '<br>'; foreach($html->find('h1') as $name) {$name = $name->innertext;} echo '<br>'; echo $name; } else { echo "Объект не загружен!"; } $html->clear(); unset($html); ?> 