PHP Classes
elePHPant
Icontem

File: example.find.php

Recommend this page to a friend!
  Classes of Christian Vigh  >  PHP Path Windows and Linux Utilities  >  example.find.php  >  Download  
File: example.find.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Path Windows and Linux Utilities
Manage file and folder paths in Windows and Linux
Author: By
Last change:
Date: 2 years ago
Size: 476 bytes
 

Contents

Class file image Download
<?php
// Demonstrates the use of the Path::Find() method
require ( 'Path.phpclass' ) ;

$dirname = dirname ( __FILE__ ) ;

if (
php_sapi_name ( ) != 'cli' )
    echo
'<pre>' ;

echo (
"List of files in the current directory :\n" ) ;
$result = Path ::Find ( $dirname ) ;
print_r ( $result ) ;

echo (
"\n\n" ) ;
echo (
"Details of files in the current directory :\n" ) ;
$result = Path ::Find ( $dirname, null, FIND_OPTIONS_ALL ) ;
print_r ( $result ) ;