TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 06-03-2010, 05:07 AM   #1 (permalink)
The Contributor
 
Join Date: Feb 2007
Posts: 64
Thanks: 9
Killswitch is on a distinguished road
Default Iterating over directories only

I have seen many scripts that recurse over directories listing files, but what I am trying to do, with no success, is list the directories only.

It doesn't help that the directory I am trying to list all directories of is quite large, but it's what I need to do :(

Can anyone help me figure out how to do this? I figured using DirectoryIterator would probably be the best option, but documentation explaining it is incredibly scarce, and not many user submitted examples.

I have tried doing this the old fashion way reading a directory and recursively listing only those that are directories, but it times out.
Killswitch is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
List Directories, not files buildakicker Absolute Beginners 19 03-13-2013 08:08 AM
Traverse Directories the Easy Way with Glob() ! Wildhoney Absolute Beginners 6 12-02-2008 11:07 PM
Auto-populating Directories? clenard General 3 08-05-2005 08:16 PM


All times are GMT. The time now is 03:15 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design