CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Reading Directory Structure

 



benn600
User


Jun 26, 2005, 12:32 PM

Post #1 of 2 (454 views)
Reading Directory Structure Can't Post

I would like to know how I can observe the directory structure of the server. It would be nice if I could make an index myself instead of using Apache's built in Index because I'd like to make some changes and if I knew how to read the directory and basically put foldernames into @folders and then I could use foreach...etc. I just need to know how to get folder structures. Thanks!
----------------------------------------------------------------------------
Wink http://www.ppcpathways.com/ Wink
Visit my new site devoted to reviewing the latest pocketpc products and news that I built in cgi-perl!


KevinR
Veteran


Jun 26, 2005, 1:47 PM

Post #2 of 2 (451 views)
Re: [benn600] Reading Directory Structure [In reply to] Can't Post

You really should be posting in the beginners forum. All of your questions are beginner type questioons. That being said....

you can use File::Find to recurse through directories or use the opendir() and readdir() functions to list files and directories on the server.
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives