• Home
  • Abatasa
Manusia Terbaik Yang Bermanfaat Bagi Sesamanya
"Ya Allah Matikan Aku Dijalan-MU"
  • Profile

    • MARTHA
      MARTHA
      Aku adalah seorang hamba yang ingin meyempurnakan agama dalam diri ini...
  • Categories

    • Hobby (2)
    • Motivasi (26)
    • PHP ORACLE (13)
    • TOKO-KU (0)
  • Tag

      php sub domai, php, backup, source, php, mysql backup,
  • Archives

    • March 2011
    • February 2011
    • January 2011
    • December 2010
    • October 2010
    • September 2010
    • February 2010
    • January 2010
    • July 2009
  • Links

    • UIN Jakarta
  • Statistik

      Blog ini telah dikunjungi sebanyak : 114136 kali


Feb 08

Backup Source Php

Add comments

1. download pclzip.lib.php di http://www.phpconcept.net/pclzip/pclzip-downloads

2. untuk bakcup 1 create folder backup dan create file archive.zip

 

<?php
    // Include the PclZip library
    require_once(’pclzip.lib.php’);
 
    // Set the arhive filename
    $archive = new PclZip(’backup/archive.zip’);
 
    // Set the dir to archive
    $v_dir = dirname(getcwd()); // or dirname(__FILE__);
    $v_remove = $v_dir;
 
    // Create the archive
    $v_list = $archive->create($v_dir, PCLZIP_OPT_REMOVE_PATH, $v_remove);
    if ($v_list == 0) {
        die("Error : ".$archive->errorInfo(true));
    }
?>

 

sumber http://campstamba.com/2010/12/create-your-own-php-backup-solution-complete-tutorial-with-source-files/


Tweet
Share



0 Response to Backup Source Php

Leave a Reply

.::. Designed by SiteGround Web Hosting

cssandhtml