PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Alexey Freelancer   Backup Task   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Backup Task
Take backups of directories and MySQL databases
Author: By
Last change: Update of example.php
Date: 6 months ago
Size: 412 bytes
 

Contents

Class file image Download
<?php

// register autoloader
// git clone git://github.com/symfony/ClassLoader.git
require_once 'ClassLoader/UniversalClassLoader.php';

use
Symfony\Component\ClassLoader\UniversalClassLoader;

$loader = new UniversalClassLoader();
$loader->register();
$loader->registerNamespace('BackupTask', '.');

$config = include '/path/to/config.php';
$backupTask = new BackupTask\BackupTask($config);
$backupTask->run();