Disipal Network  
Go Back   Disipal Network > Tutorials > PHP


Reply
 
LinkBack Thread Tools Display Modes
Old 12-19-2009, 09:02 PM   #1 (permalink)
Administrator
 
Disipal's Avatar
 
Join Date: Mar 2009
Location: Athens (Greece)
Posts: 220
Send a message via MSN to Disipal Send a message via Skype™ to Disipal
Default How to generate thumbs from a folder

PHP Code:
 <?php 
if ($handle opendir('images/gallery')) {   
while (
false !== ($file readdir($handle)))   
 {          
if (
$file != "." && $file != ".." && $file != "thumbs")
 {              
$thelist .= '<a href="images/gallery/'.$file.'" rel="gb_imageset[xxx]" title="xxx">
</a>'
;            
 }      
 }  
closedir($handle);  }
?>

<?php=$thelist?</
Disipal is offline   Reply With Quote
Reply

Bookmarks

Tags
folder, gallery, generate, thumbs


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 12:43 PM.

Powered by vBulletin® Version 3.8.4. Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Skin designed by Disipal