$cas1=fopen("/home/philippe/Desktop/cas1.txt","r+"); //$cas2=fopen("/home/philppe/Desktop/cas2.txt","r+"); //$cas3=fopen("/home/philppe/Desktop/cas3.txt","r+"); //$output = array(); $infoModem = array(); $infoWvdial = array(); $infoErreurs = array(); //$output=str_replace(" ","°",explode("\r",shell_exec("wvdial 2>&1"))); $output=explode(" ",str_replace("
"," ",nl2br(fread($cas1,filesize("/home/philippe/Desktop/cas1.txt"))))); // itérateurs permettant la manipulation des tableaux //Récupération des infos concernant le modemmmmmmmmmmmm $i=0; while($i:") { $j=$i+1; //echo $j." => ".$output[$j]."
"; while($output[$j] != "/> WvDial" || $output[$j] != "/> WvDial<*1>:" && $j ".$output[$j]."
"; array_push($infoModem,$output[$j]); $j++; } $i=$j; } else {$i++;} }