JalTable : séparation date fichier et date execution

This commit is contained in:
Michael RICOIS 2015-09-04 14:29:56 +00:00
parent ba5d319261
commit e0d107183c

View File

@ -92,7 +92,8 @@ $requests = array(
)
);
$dateBegin = date('Ymd');
$dateBegin = date('YmdHis');
$dateFile = date('Ymd');
//Output path
$client = 'orone';
@ -132,7 +133,7 @@ foreach($requests as $n => $r) {
} else {
// --- Ecriture du fichier
$filename = $fileOptionsOut['name'] . $dateBegin . '.' . $fileOptionsOut['type'];
$filename = $fileOptionsOut['name'] . $dateFile . '.' . $fileOptionsOut['type'];
$file = $fileOptionsOut['dir'] . '/' . $filename;
// --- Ouverture fichier
$fp = fopen($file, 'w');