Friday, August 30, 2013

Friday, August 23, 2013

Wednesday, August 21, 2013

Thursday, August 15, 2013

ProgrammableWeb - Web 2.0 Mashups Directory

PHP Simple HTML DOM Parser

PHP Simple HTML DOM Parser
---------------------------------------

PHP Simple HTML DOM Parser

Description, Requirement & Features

  • A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way!
  • Require PHP 5+.
  • Supports invalid HTML.
  • Find tags on an HTML page with selectors just like jQuery.
  • Extract contents from HTML in a single line.

Download & Documents


---------------------------------------

get HTML elements:

// Create DOM from URL or file
$html = file_get_html('http://www.google.com/');

// Find all images 
foreach($html->find('img') as $element) 
       echo $element->src . '<br>';

// Find all links 
foreach($html->find('a') as $element) 
       echo $element->href . '<br>';



modify HTML elements:

// Create DOM from string
$html = str_get_html('<div id="hello">Hello</div><div id="world">World</div>');
$html->find('div', 1)->class = 'bar';

$html->find('div[id=hello]', 0)->innertext = 'foo';

echo $html; // Output: <div id="hello">foo</div><div id="world" class="bar">World</div>



extract HTML contents:

// Dump contents (without tags) from HTML
echo file_get_html('http://www.google.com/')->plaintext




sample slashdot scrape:

// Create DOM from URL
$html = file_get_html('http://slashdot.org/');

// Find all article blocks
foreach($html->find('div.article') as $article) {
    $item['title']     = $article->find('div.title'0)->plaintext;
    $item['intro']    = $article->find('div.intro'0)->plaintext;
    $item['details'] = $article->find('div.details'0)->plaintext;
    $articles[] = $item;
}

print_r($articles);


Thursday, August 8, 2013

Monday, August 5, 2013

Hammock — Jim Zivic Design

Hammock — Jim Zivic Design

LEATHER LINK HAMMOCK

Steel frame with leather link sling, metal mesh and felt upholstered head/foot boards. Jewel-chain suspension.
Suede cushion with shearling pillows and throw. COM/COL available.
3 Ft. hammock: 36" W X 81" L
4 Ft. hammock: 48" W x 81" L
Sales Contact: Ralph Pucci International  - New York, Los Angeles

Friday, August 2, 2013

Thursday, August 1, 2013