Skip to content

Instantly share code, notes, and snippets.

@stevefrost
Created September 15, 2010 12:50
Show Gist options
  • Save stevefrost/580681 to your computer and use it in GitHub Desktop.
Save stevefrost/580681 to your computer and use it in GitHub Desktop.
<?php
include_once('simple_html_dom.php');
$html = file_get_html('http://www.redroadmusic.com');
// Find all article blocks
foreach($html->find('div.global_body') as $article)
{
$item[]['title'] = $article->find('a', 0)->plaintext;
$item[]['link'] = $article->find('a', 0)->href;
}
print_r($item);
die();
foreach($item as $value)
{
echo $value;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment