hi all,
I have a scrap working but it also brings the restred trade mark.
I have permission from the company to do this.
How do i strip these out?
// get simple_html_dom from http://simplehtmldom.sourceforge.net/
include_once('simple_html_dom.php');
// @todo change $url for form input
$url = "";
$html = file_get_html($url);
// look for ul tags inside DIV with id ProductDetail
$ul = $html->find('div[id=ProductDetail] ul');
// look for h1 tags inside DIV with id ProductDetail
$h1 = $html->find('div[id=ProductDetail] h1');
// look for span tag with discription class inside DIV with id ProductDetail
$det = $html->find('div[id=ProductDetail] span[class=discription]');
foreach($h1 as $header1){
echo $header1 ."<br/>";
}
foreach($det as $detail){
echo $detail . "<br/>";
}
foreach($ul as $list){
echo $list . "<br/>";
}