PHP Classes

File: demo.php

Recommend this page to a friend!
  Classes of Alf-Red  >  Rename  >  demo.php  >  Download  
File: demo.php
Role: Example script
Content type: text/plain
Description: demo for the class
Class: Rename
Rename all files from directory
Author: By
Last change: .
Date: 11 years ago
Size: 250 bytes


Class file image Download

include("./class.rename.php") ;

$image = new RenameFile() ;

//define the directory where to look for images
$dir = "./files" ;
//define the new name of the files
$name = "img" ;

$image->RenameFileInDir($dir, -1, $name);