Export le fichier dans /var/www

This commit is contained in:
Rodolphe Quiedeville 2006-04-12 08:59:27 +00:00
parent 1a572bf7d9
commit 3df4e3e741

View File

@ -18,7 +18,7 @@
* $Id$ * $Id$
* $Source$ * $Source$
* *
* Vérifie les lignes ayant le statut d'attente * Export les comms du client 52 pour analyse Birts
* *
*/ */
require ("../../../master.inc.php"); require ("../../../master.inc.php");
@ -45,7 +45,7 @@ $sql .= " ORDER BY f.date ASC, f.fk_ligne ASC";
$resql = $db->query($sql); $resql = $db->query($sql);
if ( $resql ) if ( $resql )
{ {
$fname = "/tmp/export-comms-52.xls"; $fname = "/var/www/export-comms-52.xls";
$workbook = &new writeexcel_workbook($fname); $workbook = &new writeexcel_workbook($fname);
@ -64,7 +64,7 @@ if ( $resql )
$i = 1; $i = 1;
while ($row = $db->fetch_row($resql)) while ($row = $db->fetch_row($resql))
{ {
print $row[0]. " ".$row[1]." ".$row[3]." ".$row[2]."\n"; //print $row[0]. " ".$row[1]." ".$row[3]." ".$row[2]."\n";
$xx = $i + 1; $xx = $i + 1;