fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [11657] property: cron job - integration


From: Sigurd Nes
Subject: [Fmsystem-commits] [11657] property: cron job - integration
Date: Tue, 04 Feb 2014 11:33:08 +0000

Revision: 11657
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11657
Author:   sigurdne
Date:     2014-02-04 11:33:07 +0000 (Tue, 04 Feb 2014)
Log Message:
-----------
property: cron job - integration

Modified Paths:
--------------
    
trunk/property/inc/cron/default/import_oppdatering_av_bestilling_fra_agresso_bkb.php

Modified: 
trunk/property/inc/cron/default/import_oppdatering_av_bestilling_fra_agresso_bkb.php
===================================================================
--- 
trunk/property/inc/cron/default/import_oppdatering_av_bestilling_fra_agresso_bkb.php
        2014-02-03 17:14:15 UTC (rev 11656)
+++ 
trunk/property/inc/cron/default/import_oppdatering_av_bestilling_fra_agresso_bkb.php
        2014-02-04 11:33:07 UTC (rev 11657)
@@ -185,6 +185,11 @@
 
                                foreach($files as $file_name)
                                {
+                                       if ($this->debug)
+                                       {
+                                               
_debug_array('preg_match("/csv$/i",'. $file_name . ': ' . preg_match('/csv$/i', 
$file_name));
+                                       }
+
                                        if( preg_match('/csv$/i', $file_name) )
                                        {
                                                $file_remote = $file_name;      
   
@@ -192,6 +197,11 @@
 
                                                $fp = fopen($file_local, "wb");
 
+                                               if ($this->debug)
+                                               {
+                                                       _debug_array('debug 
fopen(): ' . $fp);
+                                               }
+
                                                
if(ftp_fget($connection,$fp,$file_remote,FTP_ASCII))
                                                {
                                                        if( 
ftp_delete($connection, $file_remote))
@@ -207,6 +217,10 @@
                                                                }
                                                        }
                                                }
+                                               else
+                                               {
+                                                       echo "Feiler på 
ftp_fget()<br/>";                                               
+                                               }
                                                fclose($fp);
                                        }
                                }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]