What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Need some help =]

Need some help =]
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
RE: Need some help =]
using PHP :P

code:
function dirList ($directory)
{

    // create an array to hold directory list
    $results = array();

    // create a handler for the directory
    $handler = opendir($directory);

    // keep going until all files in directory have been read
    while ($file = readdir($handler)) {

        // if $file isn't this directory or its parent,
        // add it to the results array
        if ($file != '.' && $file != '..')
            $results[] = $file;
    }

    // tidy up: close the handler
    closedir($handler);

    // done!
    return $results;

}

will return an array in which you would have to loop through the items and echo/print them

This post was edited on 09-11-2008 at 08:13 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
09-11-2008 08:11 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Need some help =] - by Th3rmal on 09-11-2008 at 11:05 AM
RE: Need some help =] - by roflmao456 on 09-11-2008 at 08:11 PM
RE: Need some help =] - by felipEx on 09-11-2008 at 08:26 PM
RE: Need some help =] - by Th3rmal on 09-11-2008 at 08:40 PM
RE: Need some help =] - by Spunky on 09-11-2008 at 08:54 PM
RE: Need some help =] - by Th3rmal on 09-11-2008 at 09:15 PM
RE: Need some help =] - by Jarrod on 09-11-2008 at 09:47 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On