#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini 0) { //$txt=trim(addslashes($HATEXT_pre)); $sql ="INSERT INTO entrep VALUES ("; $sql.="$ANBASE,'$fichier',$NOSAI,$ORDRE,$NOBOD,'$LTBOD','$CODTRI',$JAL,$DATE,$NOPAGE,$CODEVE,$SSCODE,'$DEPT',$NOANN,'$ROLE',$SIREN,"; $sql.="'$CODLIC','$SIGNAT','$NOMTER',$DATSAI,'$TOPRAP',$CHOETA,$CHOPDS,'$CHOCHO','$FLASUR',$DATLIE,'$REPRO','$CHOCOU','$CHOLIE','$PAYS','$FILL1',"; $sql.="'$FILL2','$FILL3','$FILL4','$FILL5','$FILL6','$FILL7','$FILL8','$FILL9','$FILL10','$FILL11','$FILL12','$FILL13','$FILL14','$FILL15',$E1GENT,"; $sql.="'$E1GORI','$E1GSTB','$E1GRCD',$E1GSIR,$E1GNIC,$E1SNIC,'$E1SREG','$E1SDEP','$E1SCOM','$E1TNOM','$E1TSIG',$E1TDCR,'$E1TMMI','$E1TCJ',$E1TNBR,"; $sql.="'$E1TTEF',$E1TEFF,'$E1TDEF','$E1TAPE','$E1TA40','$E1TDAP','$E1TCA','$E1TCAX','$E1TSEX','$E1TRCM','$E1TAPR','$E1TMOA','$E1TMOD','$E1TRGP','$E1TMNO',"; $sql.="'$E1TCMP','$E1TDOM','$E1TDEA','$E1TEAE','$E1TEA1','$E1TEA2','$E1TEA3','$E1TEA4','$E1ENOM',$E1EDCR,'$E1EMMI',$E1ENRU,'$E1EBTQ','$E1ETVI','$E1ETVO',"; $sql.="'$E1EVOI','$E1EVIL',$E1ECPI,'$E1ECPD','$E1ECPF','$E1EBUR','$E1EPAD','$E1EDIS','$E1EACH','$E1EREG','$E1EDEP','$E1ECOM','$E1ERIV','$E1ESEG','$E1EARD',"; $sql.="'$E1EARO','$E1ECAN','$E1ECAO','$E1EDPU','$E1ETUR','$E1EURB','$E1EILO','$E1ETCO','$E1EEMP','$E1ETEF',$E1EEFF,'$E1EDEF','$E1EAPE','$E1EA40','$E1EDAP',"; $sql.="'$E1ESIE','$E1ESAI','$E1EAUX','$E1EORC','$E1ENAT','$E1EMOD','$E1ESIN','$E1ECMP','$E1EORD','$E1ETEL','$E1EDEA','$E1EEAE','$E1EEA1','$E1EEA2','$E1MMMJ',"; $sql.="'$E1MVM1','$E1MVM2','$E1MVM3','$E1MHMJ','$E1MMRQ','$E1M299','$E1MEVT',$E1MDEV,'$E1MSTR',$E1MNIL,'$E1MCES','$E1MTRS','$E1MORE',$E1MSIP,$E1MMJS,"; $sql.="$E1MMJT,$E1MIDD,$E1MIDN,'$E1CTRJ',$E1CARJ,$E1CDRJ,$E1CERJ,'$E1CRRJ',$E1CDBI,'$E1CTBI','$E1CTSI','$E1CRNC',$E1CDRA,$E1CDIN,$E1CDMB,"; $sql.="'$E1CTEL','$E1CFAX','$E1CWEB','$E1RTO5','$E1RTO6','$E1RTO7','$E1RTO8','$E1RTO9',$E1RF1P,$E1RF2P,'$E1RF3A');"; $nbEntrep++; if (!mysql_query($sql)) { echo "Erreur mysql ". mysql_errno() .' - '. mysql_error(). " - $sql\r\n"; } if ($nbLignes%100000==0) { echo date('Y/m/d - H:i:s'). " - Fichier $fichier : $nbLignes lignes, $nbEntrep entrep...\r\n";flush();} } } } fclose($fp); echo date('Y/m/d - H:i:s'). " - Fichier $fichier : $nbLignes lignes, $nbEntrep entrep chargés.\r\n"; flush(); } ?>