Good thinking about the 0 file size
I busy looking through these functions
http://www.w3schools.com/php/php_ref_filesystem.asp
PHP Code:
<?php
$dir = '/opt/lampp';
$files1 = scandir($dir);
$files2 = scandir($dir, 1);
?>
Directory <br />
<?php
foreach ($files1 as $fileobject){
if (is_dir($fileobject)){
echo "$fileobject<br>";
}
}
?>
Files:<br />
<?php
foreach ($files1 as $fileobject){
if (is_dir($fileobject)==FALSE){
echo "$fileobject<br>";
}
}
?>
File type:<br />
<?php
foreach ($files1 as $fileobject){
//if (is_dir($fileobject)==FALSE){
echo "$fileobject : " . filetype($fileobject) . "<br>";
}
?>
this is my testing code at the moment.