Login   Register  
PHP Classes
elePHPant
Icontem

File: remove_test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Uwe Stein  >  Dir Tool  >  remove_test.php  >  Download  
File: remove_test.php
Role: Example script
Content type: text/plain
Description: sample file
Class: Dir Tool
Copy, move and delete directories trees and files
Author: By
Last change:
Date: 8 years ago
Size: 458 bytes
 

Contents

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

// move the directory to the current dir and rename it to "dummy_moved"
$dir = new dirtool("../dummy");
$dir->debug(TRUE);
$dir->move("./dummy_moved");

// delete the dummy
/*
$dir3 = new dirtool("./dummy_moved");
$dir3->delete();

// note that u wont see anything at your tree after processing this sample,
// to test the work of dirtool, run move,copy and delete in different files :-)
*/
?>