From 937dcaece3da2a453c671e6bb6e6aa16af98ca54 Mon Sep 17 00:00:00 2001 From: jiteshjha Date: Thu, 30 Jun 2016 16:09:44 +0530 Subject: Code refactoring part 2 --- filenames.php | 4 ++-- 1 file 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 -- cgit