|
|
| |
1. Can not get ftp-sync to work |
|
Reply |
|
|
 Frankie P | 2013-02-02 16:42:12 |
Hello,
I have tried to get ftp-sync to work but to no avail. I have entered all the config data properly, I think. Here is what I entered:
$ftpServer: ftp://myftpsiteaddress
$ftpUsername: myusername
$ftpPassword: my password
$sync->syncRemoteDir('/home2/mysite/public_html/test/areg','/Users/iMac/Desktop/WebSync');
Can someone please tell me what I am doing wrong.
Thanks
Here is my error message
Connection Error. FTPSync Object ( [ftpServer] =>ftp://myftpsite [ftpUsername] => myusername[ftpPassword] =>myftppassword [maxConnections] => 5 [options] => Array ( [0] => ) [exclude_list] => Array ( [0] => ) [conIds] => Array ( [0] => Resource id #2 [1] => Resource id #3 [2] => Resource id #10 [3] => Resource id #5 [4] => Resource id #6 ) [conStats] => Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 0 ) [localFiles] => Array ( [0] => [1] => [2] => [3] => [4] => ) [verbose] => 1 [totalFiles] => 1 [totalSize] => 585 [transferredFiles] => 0 [transferredSize] => 0 [failedSize] => 0 ) |
| |
2. Re: Can not get ftp-sync to work CORRECTION |
|
Reply |
|
|
 Frankie P | 2013-02-02 16:49:27 - In reply to message 1 from Frankie P |
| I have the remote and local folders reversed in my last message by mistake. I actually have the local first and the remote second |
| |
3. Re: Can not get ftp-sync to work |
|
Reply |
|
|
 John Saman | 2013-02-02 22:02:03 - In reply to message 1 from Frankie P |
In the ftp server name please write it without the ftp:// prefix
ex: myftpsiteaddress
|
| |
4. Re: Can not get ftp-sync to work |
|
Reply |
|
|
 Frankie P | 2013-02-02 22:38:20 - In reply to message 3 from John Saman |
Hi John,
I tried what you suggested but it did not work. Do you have any other suggestions?
Thank you.
Frankie |
| |
5. Re: Can not get ftp-sync to work |
|
Reply |
|
|
 John Saman | 2013-02-15 12:13:49 - In reply to message 4 from Frankie P |
Hi Franky,
Sorry for taking a while to reply was a bit busy.
Some FTP servers don't allow many connections from the same client. So try to decrease the variable maxConnections to 1 or 2 this will mean longer time to synchronize but better than not working at all. |
|