diff options
author | jiteshjha | 2016-06-30 16:09:44 +0530 |
---|---|---|
committer | jiteshjha | 2016-06-30 16:09:44 +0530 |
commit | 937dcaece3da2a453c671e6bb6e6aa16af98ca54 (patch) | |
tree | 626ebcdb77dbe6616ca8f11c4ee192800713d0b2 | |
parent | 84195355015154f1dd63a0e3cd612e935075628b (diff) | |
download | xcos-on-web-937dcaece3da2a453c671e6bb6e6aa16af98ca54.tar.gz xcos-on-web-937dcaece3da2a453c671e6bb6e6aa16af98ca54.tar.bz2 xcos-on-web-937dcaece3da2a453c671e6bb6e6aa16af98ca54.zip |
Code refactoring part 2
-rw-r--r-- | filenames.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filenames.php b/filenames.php index 3355ac3..2df7df5 100644 --- a/filenames.php +++ b/filenames.php @@ -2,7 +2,7 @@ /* * @jiteshjha - * getFilename returns the names of all the files in a given folder + * filenames returns the names of all the files in a given folder */ // Store the filenames @@ -11,8 +11,8 @@ $filenameArray = []; // Get the folder to be operated $url = $_POST['url']; -// Open the file directory and get the filehandle // Reference: http://php.net/manual/en/function.opendir.php +// Open the file directory and get the filehandle $handle = opendir(dirname(realpath(__FILE__)).$url); // For each file in the folder, push the filename to filenameArray |