• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. PHP > Directory Functions

16.17. Directory Functions

The following functions are used to manipulate directories. For example, to open the current directory and read in all the entries, you can do something like this:

$handle = opendir('.'); 
while($entry = readdir($handle)) { 
echo "$entry<br>;
} 
closedir($handle);


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint