Retrieving all files and directories
 PHP / * My program is put on the Srever in foreign countries, I have to store it, I am hard to remember. So make a simple directory recursive function, see my procedure, it is very convenient. * / Function Tree ($ myDir = DIR ($ DIRECTORY); Echo "
"; while ($ file = $ mydir-> read ()) {ix (((is_dir ("$ DIRECTORY / $ FILE ")) And ($ file! =". ") And ($ file! =")) {Echo -    $ file  b> < / font>  li> "; Tree (" $ DIRECTORY / $ file ");} else echo" 
-  $ file  li> ";} echo"  ul> "; $ mydir-> close (} // start the program echo "
 directory is pink  h2>"; Tree (".");?>