[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r688 - in trunk/transform: . unit-test
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r688 - in trunk/transform: . unit-test |
Date: |
Tue, 4 Feb 2014 23:54:09 +0100 (CET) |
Author: danydb
Date: 2014-02-04 23:54:09 +0100 (Tue, 04 Feb 2014)
New Revision: 688
Modified:
trunk/transform/raw.php
trunk/transform/unit-test/valide-xml.php
Log:
Update : generate correct xml
Modified: trunk/transform/raw.php
===================================================================
--- trunk/transform/raw.php 2014-02-04 22:14:06 UTC (rev 687)
+++ trunk/transform/raw.php 2014-02-04 22:54:09 UTC (rev 688)
@@ -44,13 +44,14 @@
$xml->append_root();
$xml->append_client_listing($declarant);
- $file = "listing_assujetti" . date('d.m.y.h.mi').".xml";
+ $file = "listing_assujetti" . date('d.m.y.hi') . ".xml";
$ref = $_ENV['TMP'] . "/" . $file;
- echo $xml->domdoc->save($ref);
+ $xml->domdoc->save($ref);
header('Content-type: application/bin');
header('Pragma: public');
- header('Content-Disposition: attachment;filename="'.$ref.'"',FALSE);
- $file_xml=fopen($ref,'r');
- while ($in=fread($file_xml,8192)) { echo $in; }
+ header('Content-Disposition: attachment;filename="' . $file . '"',
FALSE);
+ $file_xml = fopen($ref, 'r');
+ $in = fread($file_xml, filesize($ref));
+ echo $in;
break;
-}
\ No newline at end of file
+}
Modified: trunk/transform/unit-test/valide-xml.php
===================================================================
--- trunk/transform/unit-test/valide-xml.php 2014-02-04 22:14:06 UTC (rev
687)
+++ trunk/transform/unit-test/valide-xml.php 2014-02-04 22:54:09 UTC (rev
688)
@@ -44,7 +44,7 @@
libxml_use_internal_errors(true);
//$file = "valide-exemple-listing.xml";
-$file = "test.xml";
+$file = "listing_assujetti04.02.14.1158.xml";
$schema = "xsd/NewLK-in_v0_7.xsd";
// Instanciation d’un DOMDocument
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r688 - in trunk/transform: . unit-test,
phpcompta-dev <=