SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | include 'simple_html_dom.php'; | |
3 | $html = file_get_contents('https://sinoptik.ua/'); | |
4 | - | $html = file_get_html('http://sinoptik.ua/'); |
4 | + | $html =str_get_html($html); |
5 | ||
6 | ||
7 | foreach($html->find('a') as $element) //Находим все линки | |
8 | echo $element->href . '<br>'; |