Hiren Kukadiya

Get Time of last upload files in folder

Using below function we can get last uploaded file time. filectime  $path = “YOUR_FOLDER_PATH” function listdir_by_date($path){ $dir = opendir($path); $list = array(); while($file = readdir($dir)){ if ($file != ‘.’ and $file != ‘..’){ $ctime = filectime($path . $file); $ctime = date(‘Y-m-d H:i:s’, $ctime); $list[$file] = $ctime; } } closedir($dir); krsort($list);...Read more …
Hiren Kukadiya

Display Drag and Drop Div grid View HTML using Div.

When Dislpay div using grid view. Demo : http://ksylvest.github.io/jquery-gridly/ Source  : https://github.com/ksylvest/jquery-gridly How to Get Order of Div: In jquery.gridly.js Gridly.prototype.layout = function() { var $element, $elements, index, j, position, ref, ref1, structure; $elements = (((ref = this.settings.callbacks) != null ? ref.optimize : void 0) || this.optimize)(this.$sorted()); structure = this.structure($elements);...Read more …