Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Amin Saeidi  >  FTP Sync  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: FTP Sync
Synchronize two hosts via FTP
Author: By
Last change: .DS_Store removed from repo
Date: 2 years ago
Size: 375 bytes
 

Contents

Class file image Download
<?php
require 'lib/FTPSync.php';
set_time_limit(0);

$sync = new FtpSync('127.0.0.1''Amin''123');
$sync->enableLog()
     ->
reportOnly(true)
     ->
ignore('.DS_Store')
     ->
ignore('.settings')
     ->
ignore('.buildpath')
     ->
ignore('.project')
     ->
useStrategy(FtpSync::SYNC_BY_SIZE)
     ->
remote('/Library/WebServer/Documents/SN''/Users/Amin/Downloads/Test');