Last active
August 7, 2016 12:34
-
-
Save element121/e675f26fd97e25c9c42c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include('simple_html_dom.php'); | |
// Call a remote file | |
$html = file_get_html("http://ww.site-to-scrape.com/page.php"); | |
// Then access the DOM to find what you need, for example the title of the web page: | |
foreach($html->find('title') as $e) | |
{ | |
echo $e->innertext . '<br>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment