1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| <?php
$requete_fetch = ('/home/idris/My_php/fetchdom/fetchdom-3.20/fetchdom -b /home/idris/My_php/fetchdom/fetchdom-3.20/prodom_v2005 -a '.$requete.' -fs " % " -t id,kw,la,nd,dr,inn,inntype,ht,spnb > idris_fetch.txt') ;
exec($requete_fetch);
$resultat_requete= "";
$handle = fopen("idris_fetch.txt", "r");
if ($handle) {
while (!feof($handle)) {
$resultat_requete= $resultat_requete.fgets($handle, 4096);
}
fclose($handle);
}
list($ID, $KW, $LA, $ND, $DR, $INN, $INNTYPE, $HT, $SPND, $CO) = explode(' % ', $resultat_requete) ;
print ("***********".$resultat_requete); ?> |