fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7913] import: testing


From: Sigurd Nes
Subject: [Fmsystem-commits] [7913] import: testing
Date: Fri, 21 Oct 2011 12:11:15 +0000

Revision: 7913
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7913
Author:   sigurdne
Date:     2011-10-21 12:11:15 +0000 (Fri, 21 Oct 2011)
Log Message:
-----------
import: testing

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

Modified: trunk/property/inc/cron/default/Import_fra_basware_X205.php
===================================================================
--- trunk/property/inc/cron/default/Import_fra_basware_X205.php 2011-10-21 
12:06:06 UTC (rev 7912)
+++ trunk/property/inc/cron/default/Import_fra_basware_X205.php 2011-10-21 
12:11:15 UTC (rev 7913)
@@ -268,8 +268,8 @@
 
                                        // Scan directory
                                        $arr = array();
-                                       echo "Scanning $remote_dir\n";
-                                       $dir = "ssh2.sftp://$sftp$remote_dir";;
+                                       echo "Scanning 
{$directory_remote}<br/>";
+                                       $dir = 
"ssh2.sftp://$sftp$directory_remote";;
                                        $handle = opendir($dir);
                                        while (false !== ($file = 
readdir($handle)))
                                        {
@@ -279,23 +279,23 @@
                                                        continue;
                                                }
 
-                                               $size = 
filesize("ssh2.sftp://$sftp$remote_dir/$file";);
+                                               $size = 
filesize("ssh2.sftp://$sftp$directory_remote/$file";);
                                                echo "File $file Size: $size\n";
 
-                                               $stream = 
@fopen("ssh2.sftp://$sftp$remote_dir/$file";, 'r');
-                                               $contents = fread($stream, 
filesize("ssh2.sftp://$sftp$remote_dir/$file";));
+                                               $stream = 
@fopen("ssh2.sftp://$sftp$directory_remote/$file";, 'r');
+                                               $contents = fread($stream, 
filesize("ssh2.sftp://$sftp$directory_remote/$file";));
                                                @fclose(@stream);
 
-                                               echo "CONTENTS: $contents\n\n";
+                                               echo "CONTENTS: 
$contents<br/><br/>";
                                                $arr[] = $file;
                                        }
 
-                                       echo "collect returning data from 
command\n";
+                                       echo "collect returning data from 
command<br/>";
                                        if ($debug)
                                        {
 
                                                _debug_array($arr);
-
+/*
                                                stream_set_blocking($stream, 
true);
                                                $data = "";
                                                while ($buf = 
fread($stream,4096))
@@ -304,6 +304,8 @@
                                                }
                                                fclose($stream);
                                                _debug_array($data);
+*/
+
                                        }
                                        else
                                        {




reply via email to

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