login about faq

Hi chilkat

I am using the chilkat software for the trail basis and I am planning to buy it.It seems pretty good software and will organized too. I am able to done most of things with it. Like connecting to FTP, getting files from FTP and some other things. But I stucked at a point where nothing seems to be working. I want to upload a directory to the remote directory. It is showing success in LastErrorText but no files is being uploaded to the remote server.

It is really important part of project and it should work. I also need to buy this fully once it fulfill the requirements. v9.5.0.68 • 29-May-2017 • MD5 Sum: 3064d5efd3e753ba8baf3c88be2d3ebc Chilkat PHP 7.0.* 64-bit

Many Thanks

asked Jun 06 at 06:20

amit's gravatar image

amit
11


Can you show us your code?

link

answered Jun 06 at 09:07

jpbro's gravatar image

jpbro ♦
1.1k2618

I would need more information to help solve the problem.

For example, you could set the ftp.VerboseLogging property = true, and then examine the contents of the LastErrorText after calling the method that uploads.

(The LastErrorText always contains information about what the last method call did.)

link

answered Jun 06 at 09:20

chilkat's gravatar image

chilkat ♦♦
12.8k317366477

This the code that I am using to sync remote tree

$ftp->put_Hostname($ftp_host);
$ftp->put_Username($ftp_user);
$ftp->put_Password($ftp_pass);

$success = $ftp->Connect();

if ($success == true) {
    $ftp->put_VerboseLogging(true); 
    $ftp->ClearDirCache();
    $mode = 2;
    echo $path = '/var/www/websites/websitebackupbot.com/site_backups/backup_timeless_2017_05_15_97/';
    $success = $ftp->SyncRemoteTree($path,$mode);

    echo '<pre>';print $ftp->lastErrorText() . "\n";die;

and here is the response from lastErrorText I am getting..

ChilkatLog:
  SyncRemoteTree(1238ms):
    DllDate: May 20 2017
    ChilkatVersion: 9.5.0.67
    UnlockPrefix: Anything for 30-day trial
    Architecture: Little Endian; 64-bit
    Language: Linux PHP
    VerboseLogging: 1
    ftpServerInfo(1ms):
      greeting: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 4 of 150 allowed.
220-Local time is now 05:23. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 5 minutes of inactivity.
      features: 211-Extensions supported:
 EPRT
 IDLE
 MDTM
 SIZE
 MFMT
 REST STREAM
 MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
 MLSD
 AUTH TLS
 PBSZ
 PROT
 UTF8
 TVFS
 ESTA
 PASV
 EPSV
 SPSV
 ESTP
211 End.
      syst: UNIX Type: L8
    --ftpServerInfo
    putTree2(1237ms):
      localRootDir: /var/www/websites/websitebackupbot.com/site_backups/backup_timeless_2017_05_15_97/
      mode 2: Upload missing and newer files.
      PlanOnly: 0
      Mode: 2
      PreviewOnly: 0
      RecursiveDescend: 1
      rootDir: /var/www/websites/websitebackupbot.com/site_backups/backup_timeless_2017_05_15_97/
      pwd(245ms):
        simpleCommand(245ms):
          sendCommand:
            sendingCommand: PWD
          --sendCommand
          readCommandResponse(245ms):
            replyLineQP: 257 "/" is your current location
          --readCommandResponse
        --simpleCommand
      --pwd
      remoteBaseDir: /
      initialCurrentRemoteDir: /
      FTP directory cache not fresh.  Fetching dir listing...
      fetchDirListing(746ms):
        fetchDirListing2(746ms):
          setupDataConnection(496ms):
            setupPassiveDataSocket(496ms):
              sendCommand:
                sendingCommand: PASV
              --sendCommand
              readCommandResponse(245ms):
                replyLineQP: 227 Entering Passive Mode (103,50,162,147,234,147)
              --readCommandResponse
              dataConnect(251ms):
                hostname: 103.50.162.147
                port: 60051
                socket2Connect(251ms):
                  connect2(251ms):
                    hostname: 103.50.162.147
                    port: 60051
                    ssl: 0
                    connectSocket(251ms):
                      domainOrIpAddress: 103.50.162.147
                      port: 60051
                      connectTimeoutMs: 30000
                      connect_ipv6_or_ipv4(251ms):
                        This is an IPV4 numeric address.
                        Domain to IP address resolution not needed.
                        connecting to IPV4 address...
                        ipAddress: 103.50.162.147
                        createSocket:
                          Setting SO_SNDBUF size
                          sendBufSize: 262144
                          Setting SO_RCVBUF size
                          recvBufSize: 4194304
                        --createSocket
                        connect(251ms):
                          Waiting for the connect to complete...
                          myIP: 172.31.4.144
                          myPort: 39152
                          socket connect successful.
                        --connect
                      --connect_ipv6_or_ipv4
                    --connectSocket
                  --connect2
                --socket2Connect
                socketOptions:
                  SO_SNDBUF: 425984
                  SO_RCVBUF: 425984
                  TCP_NODELAY: 0
                  SO_KEEPALIVE: 0
                --socketOptions
                dataConnectSuccess: 1
              --dataConnect
            --setupPassiveDataSocket
          --setupDataConnection
          sendCommand:
            sendingCommand: MLSD
          --sendCommand
          readCommandResponse(247ms):
            replyLineQP: 150 Accepted data connection
          --readCommandResponse
          readFtpDataChannel(3ms):
            maxToReceive: 4096
            Connection closed by peer.
            passiveClose:
              Passive socket closing complete.
            --passiveClose
            dirListSize: 439
          --readFtpDataChannel
          rawListingQP: type=3Dcdir;sizd=3D4096;modify=3D20170525044601;UNIX.mode=3D0755;UNIX.uid=
=3D998;UNIX.gid=3D756;unique=3D811gfcc1dce; .
type=3Dpdir;sizd=3D4096;modify=3D20170525044601;UNIX.mode=3D0755;UNIX.uid=
=3D998;UNIX.gid=3D756;unique=3D811gfcc1dce; ..
type=3Dfile;size=3D10;modify=3D20170525044601;UNIX.mode=3D0600;UNIX.uid=3D9=
98;UNIX.gid=3D756;unique=3D811gfcc1dd5; .ftpquota
type=3Ddir;sizd=3D4096;modify=3D20170523114038;UNIX.mode=3D0755;UNIX.uid=3D=
998;UNIX.gid=3D756;unique=3D811gfcc1e89; 03-05-2017

          parsing MLSD listing...
          NumDirListingLines: 5
          parseMlsdEntries:
            Mlsd_line: type=cdir;sizd=4096;modify=20170525044601;UNIX.mode=0755;UNIX.uid=998;UNIX.gid=756;unique=811gfcc1dce; .
            Mlsd_line: type=pdir;sizd=4096;modify=20170525044601;UNIX.mode=0755;UNIX.uid=998;UNIX.gid=756;unique=811gfcc1dce; ..
            Mlsd_line: type=file;size=10;modify=20170525044601;UNIX.mode=0600;UNIX.uid=998;UNIX.gid=756;unique=811gfcc1dd5; .ftpquota
            Mlsd_line: type=dir;sizd=4096;modify=20170523114038;UNIX.mode=0755;UNIX.uid=998;UNIX.gid=756;unique=811gfcc1e89; 03-05-2017
            Mlsd_line: 
          --parseMlsdEntries
          readCommandResponse:
            replyLineQP: 226-Options: -a -l
            replyLineQP: 226 4 matches total
          --readCommandResponse
          ListTimeMS: 746
        --fetchDirListing2
      --fetchDirListing
      originalDir: /
      changeRemoteDir(246ms):
        simplePathCommand(246ms):
          simpleCommand(246ms):
            sendCommand(1ms):
              sendingCommand: CWD /
            --sendCommand
            readCommandResponse(245ms):
              replyLineQP: 250 OK. Current directory is /
            --readCommandResponse
          --simpleCommand
        --simplePathCommand
      --changeRemoteDir
    --putTree2
    Success.
  --SyncRemoteTree
--ChilkatLog

It is returning success but nothing on the remote server.

Let me know if you need anything else as well

link

answered Jun 07 at 01:32

amit's gravatar image

amit
11

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×144
×23

Asked: Jun 06 at 06:20

Seen: 362 times

Last updated: Jun 07 at 01:32

powered by OSQA