Revision: 52499
                            
                                                            
                                    
                                        
Initial Code
                                    
                                    
                                                            
                                    
                                        
Initial URL
                                    
                                    
                                
                                                            
                                    
                                        
Initial Description
                                    
                                    
                                
                                                            
                                    
                                        
Initial Title
                                    
                                    
                                                            
                                    
                                        
Initial Tags
                                    
                                    
                                                            
                                    
                                        
Initial Language
                                    
                                    
                                                    
                        at October 25, 2011 05:29 by twoeight
                            
                            Initial Code
<?php
$thumb = "thumb"; //thumb folder name whit no "/" 
$images = "img"; //images folder name whit no "/"
$listOfFilesToSort = array();
$folder = opendir($images);
while ( false !== ( $file = readdir( $folder ))){
if ( $file != "." && $file != ".." )
$listOfFilesToSort[$file] = $file;	
}
sort( $listOfFilesToSort );
foreach ( $listOfFilesToSort as $file )
{
echo '<a href="'.$images.'/'.$file.'"><img src="'.$thumb.'/'.$file.'" class="gal"></a>';
}
?>
                                Initial URL
Initial Description
Initial Title
Gallery from folder whit php
Initial Tags
php
Initial Language
PHP