PHP Classes

File: sample.php

Recommend this page to a friend!
  Classes of Everton da Rosa   PHP Backup Files to FTP   sample.php   Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Backup Files to FTP
Send ZIP file with backup of files to a FTP server
Author: By
Last change: Update of sample.php
Date: 3 months ago
Size: 1,298 bytes


Class file image Download

 * Copyright (C) 2014 Everton
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <>.

 * This file provides a basic example of usage BakFtp class.
require 'bakftp.class.php';

$ftpWrapper = '';//In this example, the backup will be saved in bakftp directory server. This directory had to be created beforehand. The class does this automatically to avoid creating directories be randomly giving greater security.

$files = array(

$bak = new BakFtp('sample', 'c:/users/myuser/desktop/');