Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick Question
#1
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=
JWH Technologies
Have any marketing ideas for Get-Simple? Let me hear them!
Reply
#2
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>";

    }
  }
Reply
#3
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...^____^
Reply




Users browsing this thread: 1 Guest(s)