Jump to content


This topic is now archived and is closed to further replies.


Directory Listing

Recommended Posts

Try this:
// An example if you want all of a specific file type in a directory.
$Gdir = "fotos/";
foreach (glob("$Gdir/{*.jpg,*.png,*.gif}", GLOB_BRACE) as $file)
    echo $file.'<br>';

Ronald  8)

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.