PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Rupom Razzaque   Deleting specific files   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: The Usage File
Class: Deleting specific files
Deleting specific types of files from a folder
Author: By
Last change:
Date: 18 years ago
Size: 402 bytes
 

Contents

Class file image Download
<?php

/**
* Author : MA Razzaque Rupom (rupom_315@yahoo.com, rupom.bd@gmail.com)
* Version : 1.0
* Date : 19 Feb, 2006
* Purpose : Deleting Files of Specific Extension from Specific Directory Path
* Released : Under GPL
*/

require_once "file_del.class.php";

$path = "/your/desired/path/to/delete_from";
$ext = "desired_ext";

$delObj = new fileDel($ext);

$delObj->delDirFiles($path);

?>