PHP Classes

File: dirtool-test.php

Recommend this page to a friend!
  Classes of Uwe Stein   Dir Tool   dirtool-test.php   Download  
File: dirtool-test.php
Role: Example script
Content type: text/plain
Description: a sample how to use class dirtool
Class: Dir Tool
Copy, move and delete directories trees and files
Author: By
Last change: splitted the sample-file into three different files to demonstrate move,copy, delete
Date: 18 years ago
Size: 252 bytes
 

Contents

Class file image Download
<?php
include("class_dirtool.php");
//create a dirtool-object
$dir = new dirtool("./my_cms");

$dir->debug(TRUE);
//copy the "your_test_dir" to the parent-directory and rename it to dummy ( file-permissons rwxrwxrwx)
$dir->copy("../dummy",0777);
?>