Latest working copy. Added writing for tbl

This commit is contained in:
color.diff=auto
2021-03-21 19:36:46 -06:00
parent 018931d7ae
commit 35b3f1ae00
193 changed files with 1734 additions and 46896 deletions

View File

@@ -1,16 +1,12 @@
<?php
ini_set('display_errors', 0);
ini_set('display_errors', 1);
ini_set('log_errors', 1);
require_once 'vendor/autolaod.php';
require_once "config.php";
require_once "./config.php";
//$path = $d2_dir."data\\global\\excel\\";
$path = $d2_dir."data/global/excel/";
$path = $d2_dir;
$post = $_POST;
if (!empty($post['code'])) {
@@ -25,11 +21,24 @@ if (!empty($post['code'])) {
require_once 'uniqueitems.php';
$fp = fopen($u, 'a+');
//echo "<pre>";
//print_r($post);
//echo "</pre>";
echo "<pre>";
print_r($post);
foreach ($post as $p){
echo "$p\t";
}
echo "</pre>";
if (!empty($_POST)) {
fputcsv($fp, $post, "\t");
// write for .tbl
$str = '"'.$post["index"].'" "'. $post["index"] .'"';
file_put_contents("UniqueItemsTblEntries.txt", $str, FILE_APPEND | LOCK_EX);
}
if (!empty($_POST)) {fputcsv($fp, $post, "\t");}