Login   Register  
PHP Classes
elePHPant
Icontem

File: cron.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Archzilon Eshun-Davies  >  cDBbackup  >  cron.php  >  Download  
File: cron.php
Role: Example script
Content type: text/plain
Description: Example Usage
Class: cDBbackup
Generate PHP scripts that are MySQL backups
Author: By
Last change:
Date: 2012-02-16 05:22
Size: 1,100 bytes
 

Contents

Class file image Download
<?php
/* $Id: cron.php,v 1.1 2008/11/06 23:45:00 aedavies Exp $ */
/*
 * Copyright (c) 2008,2009,2010,2011,2012 Archzilon Eshun-Davies
 *    <laudarch@qremiaevolution.org>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */
 
/*
 * Sample cron script to backup database(daily|weekly|monthly|yearly)
 */

 
$backup = new DBbackup;
 
$backup->params('127.0.0.1''dbuser''dbpassword');
 
$backup->mysql();
 unset(
$backup);
?>