Results 1 to 3 of 3
Threaded View
-
8th Jan 2012, 01:18 PM #2MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comPHP Code:function read_dir($dir) {
$handle = opendir ($dir);
while (false !== ($f = readdir ($handle))){
if ($f != "."){
if ($f != ".."){
$file=$dir.$f;
if(is_file($file)) {
$ext = strtolower(substr($file, strrpos($file, '.') + 1));
if($ext == 'avi') echo $file.'<br />';
}
}
}
}
}
read_dir('full_path_to_dir');
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
5 IE9 extensions you should know about
By CyberPrince in forum News & Current EventsReplies: 0Last Post: 8th Nov 2011, 01:06 AM -
Adding specific words to all TXT files at the same time
By astalavistia in forum Web Development AreaReplies: 6Last Post: 24th Apr 2011, 11:57 AM -
I'm Uploading Files Manually Now, So How To Change MD5 & Create Screens?
By elpirata in forum Webmaster DiscussionReplies: 2Last Post: 23rd Feb 2011, 02:06 PM -
create dummy file with specific size in php
By techdaemon in forum Webmaster DiscussionReplies: 0Last Post: 28th Sep 2010, 12:55 AM -
[linux] Create video thumbnails for all video in a specific folder
By Snell in forum Tutorials and GuidesReplies: 7Last Post: 26th Jul 2010, 08:33 AM
themaCreator - create posts from...
Version 3.53 released. Open older version (or...