This code run php versions >= 5.1.2
This code is very useful and simple display the particular path directory and file list.
<?php
$path = "C:/xampp/htdocs/samplejoomla/application/controllers/administrator/";
$objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST);
foreach($objects as $name => $object){
echo "$name\n"."<br/>";
}
?>
This code is very useful and simple display the particular path directory and file list.
<?php
$path = "C:/xampp/htdocs/samplejoomla/application/controllers/administrator/";
$objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST);
foreach($objects as $name => $object){
echo "$name\n"."<br/>";
}
?>
No comments:
Post a Comment