#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini listeBilans(); $derBilan=current($tabBilans); $p=@$mBil->getBilan(WDate::dateT('Ymd','d/m/Y',$derBilan['dateExercice']), $derBilan['typeBilan']); foreach ($tabOutput as $poste) { if (preg_match('/DATE/', $poste)) $strLigneCsv.=WDate::dateT('Ymd','d/m/Y',@$p[$poste]).';'; else $strLigneCsv.=@$p[$poste].';'; } echo $strLigneCsv.EOL; } /*Sytrade, Altisys, */ ?>