Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Read the content from directory

Sun Oct 26, 2008 8:48 pm

Get the files list in a directory
Code:
<?php
    $dir 
opendir("./");
                
    while (
$read_file readdir($dir)) {
      echo 
"$read_file""\n";
    }
    
closedir($dir);
?>




Post a reply
  Related Posts  to : Read the content from directory
 Read XML file content using SAX and writing its as SQL     -  
 Read file content to StringBuffer String object     -  
 phone directory     -  
 php Directory lister     -  
 Creating a Directory in php     -  
 Delete directory in php     -  
 Get Directory size in java     -  
 invalid drive or directory     -  
 Upload File to a new directory     -  
 Listing the Contents of a Directory     -  

Topic Tags

PHP Files and I/O