GetSimple Support Forum

Full Version: Quick Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does any one know a simple php script that will generate an image gallery of
all images in a folder?

I need to make a simple image gallery that just display all the images in that
folder.

I need the images to be generated with the follwing styleing

<div id=
hi there this is script gets the content in a folder and if you echo output it displays the images inside a div

Code:
// open the directory
  $dir = opendir( $pathToImages );

  $counter = 0;
  // loop through the directory
  while (false !== ($fname = readdir($dir)))
  {
    // strip the . and .. entries out
    if ($fname != '.' && $fname != '..')
    {
      $output .= "<div id=\"id\">";
      $output .= "<img src=\"{$pathToImages}{$fname}\" border=\"0\" />";
      $output .= "</div>";

    }
  }
j just write a plugin that make exatly this.....
if u write me f.mariottini@gmail.com i'll send it...
but it lack of documentation and had a bat eng lang...^____^