Hello All, I am writing here the code to get various base directory paths, which might be useful. Assuming the directory is named ‘magento’ where your site is present and its the root directory of the filesystem.
This post will be helpful to those who work with directories and files. I am writing here the PHP code for deleting the directory.
I have written a script for getting the files list from directory and redirecting the page on selecting option from the select box. So you will get the script for fetching all the files from current directory and redirecting page on selection.
I am listing here the method to copy full Directories with all sub-directories and files.