Example #1
0
<?php

include 'local_config.php';
include 'lib.db.php';
include 'lib.cvm.php';
date_default_timezone_set('America/Sao_Paulo');
$filename = "/Users/wilson/Dropbox/dev/farol-investimentos/xml/CVM-ID-20131025.xml";
$err = cvm_push_xml_to_db($filename);
echo "errors " . count($err) . "\n";
Example #2
0
<?php

include 'lib.cvm.php';
include 'local_config.php';
$file = $_REQUEST['file'];
chdir(CVM_PATH);
cvm_push_xml_to_db($file);
$month = $_REQUEST['month'];
header("Location: cvm.php?month={$month}");