Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: Code formatting
Date: 2 years 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();