View Single Post
Old 25-03-2009, 13:59   #11
funkyCable
Inactive
 
Join Date: Aug 2005
Location: Canvey Island, Essex
Services: SERVICES FROM 26/08/05 TV XL services 2MB BROADBRAND UNLIMITED TALK PACKAGE V+ Service (Since 18
Posts: 1,195
funkyCable is just really nicefunkyCable is just really nicefunkyCable is just really nicefunkyCable is just really nicefunkyCable is just really nicefunkyCable is just really nice
Re: need help with pointing to an ubuntu directory. Using LAMPP

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($dir1);
?>
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.
funkyCable is offline   Reply With Quote