mmmh... non hai messo la "differenza"? vedo come differenze di tempi (manca il primo perchè non abbiamo il timestamp di avvio: è importante... dovrebbe essere bassissimo perchè viene fatto solo l'inclusione):
55"
46"
29"
che sono troppi in tutti i casi! Per esempio il primo gap... verifichiamo così allora:
Codice PHP:
<?php
$ts = time(); // debug
// example of how to use basic selector to retrieve HTML contents
include('simple_html_dom.php');
$ts = time()-$ts; print "#01: $ts\"
"; // debug
$html = new simple_html_dom();
$ts = time()-$ts; print "#02: $ts\"
"; // debug
// get DOM from URL or file
$html = file_get_html('.....');
$ts = time()-$ts; print "#03: $ts\"
"; // debug
// find all span tags with class=gb1
foreach($html->find('span.price') as $e)
$UE40ES7000 = $e->outertext;
@$car = "€";
@$UE40ES7000 = str_replace($car,€,$UE40ES7000);
$ts = time()-$ts; print "#04: $ts\"
"; // debug
exit;
?>
e riposta...