<?php include_once "./required/tool_files_dirs.php"; include_once "./required/tool_svg.php"; include_once "./required/tool_read_log.php"; include_once "./ini.php"; ini_set("memory_limit", -1); $array_paquet = Tool_read_log::path2array_paquet($path_log, $lg1, $lg2, $mesure); $cpt = 0; for ($k = 0; $k < 1; $k += $step1) { $borne_min = $k; $borne_max = $borne_min + $gap1; echo $cpt++ . "\r"; $a = Tool_read_log::filter_array_paquet($array_paquet, $lg1, $lg2, $id_multidoc, $borne_min, $borne_max, $dist_min, $dist_max, $nb_occ_min1, $nb_occ_max1, $nb_occ_rel_min1, $nb_occ_rel_max1, $str_len_min1, $str_len_max1, $str_len_min2, $str_len_max2); $array_corres = array(); for ($i = $borne_min2; $i < $borne_max2; $i += $step2) { // $array_corres["$i"] = array(); $array_corres["{$i}"] = 0; } foreach ($a as $p) { // $array2 = Tool_read_log::line2rep($p[$lg2]); $array2 = $p[$lg2]; foreach ($array2 as $v1) { $id1 = floor($v1); $src1 = $v1 - $id1; if ($id1 == $id_multidoc) { foreach ($array_corres as $key => $aval) { if (Tool_read_log::btwn($src1, $key, $key + $gap2)) { ++$array_corres[$key]; } }