codice:<?php // 4 function getStats( &$array, $_1, $_2, $_3, $_4, $_5 ) { $array['kbytes'] = &$_1; $array['visits'] = &$_2; $array['pages'] = &$_3; $array['files'] = &$_4; $array['hits'] = &$_5; } $stats = Array(); preg_replace( "/(?i)Totals".str_repeat("[^\a]+?>([0-9]+)<", 5)."/e", 'getStats($stats, "\\1", "\\2", "\\3", "\\4", "\\5");', file_get_contents('http://www.laquilaannunci.it/statistiche.htm') ); echo '<pre>'; var_dump($stats); ?>


Rispondi quotando