Praticamente ho fatto così
Ho creato un file per ogni (in questo caso) prodotto il file è il seguente:
FIle parsing:
Codice PHP:
<?php
// example of how to use basic selector to retrieve HTML contents
include('simple_html_dom.php');
$html = new simple_html_dom();
// get DOM from URL or file
$html = file_get_html('http://www.euronics.it/acquistaonline/video/tv-led-e-led-3d/samsung-ue40es7000-3d-smart-tv-/prod122004593.html');
// find all span tags with class=gb1
foreach($html->find('span.price') as $e)
$UE40ES7000 = $e->outertext;
@$car = "€";
@$UE40ES7000 = str_replace($car,€,$UE40ES7000);
?>
Questo file l'ho fatto per ogni prodotto, ovviamente cambiandogli la variabile per stamparlo a video. Dopodichè ho creato un file includendo tutti i file parsing e stampare tutti i prezzi su un unica tabella...
2) ok ho capito... Peccato... ora vedo un pò se riesco ad arrangiarmi in un altro modo...
Grazie.