dans $msg $msg=str_replace('*#','',$msg); #remplacer ici http... par un lien cliquable $a=' lienweb '; $Zm=explode(" ",$msg);$cm=count($Zm); for($i=0;$i<=$cm;$i++) {if(substr($Zm[$i],0,7)=="http://"){$Zm[$i]=$a.$Zm[$i].$b;}} $msg=implode(" ",$Zm); #ajouter le nouveau message au fichier stock.txt $fh=fopen("stock.txt","a"); $msg=$msg."\n";fwrite($fh,$msg);fclose($fh); $Fh=file("stock.txt");$c=count($Fh);$fh=fopen("stock.txt","w"); if($c<$imax){$imax=$c;} for($i=$c-$imax;$i<$c-0.5;$i++){fwrite($fh,$Fh[$i]);} fclose($fh); #retourner à la page de saisie et affichage header("Location: fires.php"); # ?>