32 lines
608 B
PHP
32 lines
608 B
PHP
<?php
|
|
|
|
header("Content-Type: text/html; charset=UTF-8");
|
|
require_once('php/inc_functions.php');
|
|
require_once('php/inc_fx_messages.php');
|
|
require_once('php/inc_fx_excell.php');
|
|
|
|
$target_path = "../datapaypal/";
|
|
$mem_fichier= "TRR-20141210.01.010.CSV";
|
|
|
|
$str_files = scandir($target_path);
|
|
foreach ( $str_files as $key => $value)
|
|
{
|
|
if(strpos($value,"TRR-")!==false){
|
|
|
|
|
|
$sqlfile = "SELECT * FROM paypal_log WHERE paypal_file='".$value."'";
|
|
$recfile = $GLOBALS['db']->fxGetRow($sqlfile);
|
|
|
|
if ($recfile == null)
|
|
{
|
|
|
|
$i=fxupload_paypal($value,$target_path) ;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|