Results 1 to 10 of 12
Threaded View
-
26th Feb 2011, 11:34 AM #7OPMemberCode:
/* ------------------------------------------------------------------------- */ function getlist ($directory) { global $delim, $win; if ($d = @opendir($directory)) { while (($filename = @readdir($d)) !== false) { if ($filename == '.' && $filename == '..') continue; $path = $directory . $filename; if ($stat = @lstat($path)) { $file = array( 'filename' => $filename, 'path' => $path, 'is_file' => @is_file($path), 'is_dir' => @is_dir($path), 'is_link' => @is_link($path), 'is_readable' => @is_readable($path), 'is_writable' => @is_writable($path), 'size' => $stat['size'], 'mtime' => @filemtime($path), 'atime' => @fileatime($path), 'ctime' => @filectime($path) ); if ($file['is_dir']) { $file['is_executable'] = @file_exists($path . $delim . '.'); } else { if (!$win) { $file['is_executable'] = @is_executable($path); } else { $file['is_executable'] = true; } } if ($file['is_link']) $file['target'] = @readlink($path); $files[] = $file; } } return $files; } else { return false; } }
Looks like the same"Only great minds can afford a simple style."
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Hiring] Coders
By pumpa in forum Completed TransactionsReplies: 13Last Post: 1st Dec 2011, 06:04 PM -
Any PSD coders here
By AJ Blacklisted in forum Web Development AreaReplies: 4Last Post: 22nd Jun 2011, 05:04 PM -
Coders
By pcsoftwarez in forum Completed TransactionsReplies: 15Last Post: 16th Jun 2010, 09:03 PM -
looking for php coders
By r0ck in forum Community CooperativeReplies: 2Last Post: 23rd Jan 2010, 10:01 PM -
Any coders around.
By Luke in forum Technical Help Desk SupportReplies: 2Last Post: 26th Jul 2009, 10:57 PM
themaLeecher - leech and manage...
Version 5.06 released. Open older version (or...