Home
| Links | Site Map | About Us | Contact Us | Add your code

 

PHP Code: Recursive Directory Browser   Next Code

This function takes in a directory path and recursively searches through the directory structure and returns all files in those directories. The file list is returned in an array.


This function has 1 required parameter and 2 optional parameters.


directoryToArray(Path to Directory [,file extention [,Display Full Path]]


If the file extension parameter is set, only files matching that extension will be displayed, ie, "jpg"


If the Display Full Path parameter is true, then the full path of the file will be returned. If it is false, only the file name will be returned. By default, this parameter is set to true.

 

Preview:

 

 

 

 

 

 

Free Code Script:

Get Free Java, HTML, PHP codes and scripts. Use code script and easily with HTML and web help and samples. Learn Javascript, HTML and PHP source code, function, forms, website, forum, design for webmasters.

Link Us:

Free Code Script

Just put this code to your pages and you will have our logo in your site! This brings traffic to your website.

Favorite Us!


We update weekly!

Visitors:

Online Users:


Go to the main page

  Home | Links | Site Map | About Us | Contact Us | Add your code
2008 © Krishna Eydat, YOU MUST NOT remove the link to our website in any code, it is against the copyright law.