<?php
//////////////////////////////////////////////////////////////////
// Title: DigiOz Directory Indexer Class EXAMPLE
// File Name: example.php
// Description: The purpose of this file is to demonstrate the
// usage of the directory indexer class for users.
// Created On: 08-14-07
// Revised On: 08-27-07
// Author: Pedram Soheil
// Website: http://www.digioz.com
//////////////////////////////////////////////////////////////////
/// 2-D Array Description:
/// Column 1: FILE NAME
/// Column 2: FILE DATE
/// Column 3: FILE SIZE
/// Column 4: FILE TYPE (DIR or FILE)
//////////////////////////////////////////////////////////////////
include("clsIndexer.php");
$a = new indexer();
$files = $a->listdir("./", "SORT_ASC", 1);
$i = 0;
foreach ($files as $row) {
foreach ($row as $col) {
if ($i == 1)
{
echo date("m/d/Y",$col)." | ";
$i++;
}
else
{
echo "$col | ";
$i++;
}
}
echo "<br>";
$i=0;
}
echo "<br><br>Done";
?>
|