Thread: Giflist
View Single Post
  #5  
Old 01-08-2002, 08:15 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
If you upload all of the webgifs to a web server with php, you could use this to make a list of all of the graphics... little easier then browsing through each one.
PHP Code:
<?php
  $folderpath 
"PATH/TO/FILES";
  if (
$dir = @opendir($folderpath)) {
    while ((
$file readdir($dir))!==false) {
      if (
$file!="." && $file!="..")
        echo 
"$file\n<br>\n";
    }
    
closedir($dir);
  }
?>
and if you want the graphics to show next to the name:
PHP Code:
<?php
  $folderpath 
"PATH/TO/FILES";
  if (
$dir = @opendir($folderpath)) {
    while ((
$file readdir($dir))!==false)
      if (
$file!="." && $file!="..")
        echo 
"<img src=\"$file\"> $file\n<br>\n";
    
closedir($dir);
  }
?>
__________________
Eric Kraft
Reply With Quote